From 49fa57308a339cde3ab1db2e7cfa99e63b7f30a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Hauspie?= <michael.hauspie@univ-lille.fr> Date: Tue, 29 Nov 2022 01:08:47 +0100 Subject: [PATCH] Add README and default to TicTacToe --- README.md | 11 +++++++++++ src/main.rs | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..299a9e7 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +This repository is a rust simple board game engine used as a live +coding support for an rust introduction seminar + +To build and test it + +``` +cargo test +cargo run +``` + + diff --git a/src/main.rs b/src/main.rs index 52dfb1c..cf1077f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -44,8 +44,8 @@ where } fn main() { - //let board = TicTacToe::new(); - let board = board::coin_flip::FlipCoin::new(42); + let board = TicTacToe::new(); + //let board = board::coin_flip::FlipCoin::new(42); play(board); } -- GitLab