Skip to content

Instantly share code, notes, and snippets.

@nekename
nekename / main.rs
Created July 10, 2025 12:15
RustSnake
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 ";
@nekename
nekename / main.go
Created July 10, 2025 12:14
GoSnake
package main
import (
"fmt"
"math/rand"
"os"
"slices"
"time"
"github.com/eiannone/keyboard"