Crates.io | l19_terminal_tictactoe |
lib.rs | l19_terminal_tictactoe |
version | 0.1.2 |
source | src |
created_at | 2022-04-08 08:42:55.301583 |
updated_at | 2022-04-08 09:37:38.824165 |
description | A game of Tic Tac Toe played on the command line; Educational exercise. |
homepage | |
repository | |
max_upload_size | |
id | 564102 |
size | 64,112 |
Testing Cargo.io submissions, versioning, and documentation.
Tests will be written around a game of TicTacToe. See TODO.
Linux, x86_64.
See: Rustup
git clone https://github.com/L19579/L19_Terminal_TicTacToe.git # Download repo
cd #insert_repo_directory
cargo build --release
./target/release/l19_terminal_tictactoe
use l19_terminal_tictactoe as l19;
//-- snip
let input_bindings: Hashmap::<&str, usize> = HashMap::from([
("a1", 0),
("a2", 1),
("a3", 2),
("b1", 3),
("b2", 4),
("b3", 5),
("c1", 6),
("c2", 7),
("c3", 8),
]);
let mut gm = l19::GameMaster::new(&input_bindings);
//-- snip
Package (0.1.2): Crates.io
Published documentation: Docs.rs