| 1 |
// For the full copyright and license information, please view the LICENSE |
| 2 |
// file that was distributed with this source code. |
| 3 |
|
| 4 |
use term_grid::{Direction, Filling, Grid, GridOptions}; |
| 5 |
|
| 6 |
fn main() { |
| 7 |
let mut n: u64 = 1234; |
| 8 |
for _ in 0..50 { |
| 9 |
let mut cells = Vec::new(); |
| 10 |
for _ in 0..10000 { |
| 11 |
cells.push(n.to_string()); |
| 12 |
n = n.overflowing_pow(2).0 % 100_000_000; |
| 13 |
} |
| 14 |
|
| 15 |
let grid = Grid::new( |
| 16 |
cells, |
| 17 |
GridOptions { |
| 18 |
direction: Direction::TopToBottom, |
| 19 |
filling: Filling::Text(" | ".into()), |
| 20 |
width: 80, |
| 21 |
}, |
| 22 |
); |
| 23 |
|
| 24 |
println!("{grid}"); |
| 25 |
} |
| 26 |
} |