Skip to content

Commit ab612c7

Browse files
committed
docs: Added some commentaries to code
Signed-off-by: Proxyfil <piloupilou200@gmail.com>
1 parent 1eb151a commit ab612c7

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

topics/tic-tac-toe/src/game/game.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ impl Game {
2020
}
2121
}
2222

23+
// Main game loop
2324
pub fn play(&mut self) {
2425
loop {
2526
self.display_board();

topics/tic-tac-toe/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ mod game;
22

33
use crate::game::game::Game;
44

5+
// Main game entry point
56
fn main() {
67
println!("Starting Tic Tac Toe game..." );
78
let mut game = Game::new();

0 commit comments

Comments
 (0)