This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::collections::VecDeque; | |
use std::process::exit; | |
use std::sync::mpsc::channel; | |
use std::thread::{sleep, spawn}; | |
use std::time::Duration; | |
use console::{Key, Term}; | |
const WALL: &str = "\u{001b}[45m "; | |
const BG: &str = "\u{001b}[102m "; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"os" | |
"slices" | |
"time" | |
"github.com/eiannone/keyboard" |