This file contains 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 rand::seq::SliceRandom as _; | |
use rand::Rng; | |
use std::ops::Range; | |
const NUMBER_OF_ROOMS: Range<usize> = 9..12; | |
const SCREEN_WIDTH: usize = 80; | |
const SCREEN_HEIGHT: usize = SCREEN_WIDTH; | |
struct Room { | |
top: bool, |