Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
intro-rust-game
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Hauspie
intro-rust-game
Compare revisions
134b9ff165b75332b89c929a0984285dea64fb4c to 13872a67d9a2f11ccbaee167c5933c8e45c552d6
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
michael.hauspie/intro-rust-game
Select target project
No results found
13872a67d9a2f11ccbaee167c5933c8e45c552d6
Select Git revision
Branches
main
Tags
01-simple-board
02-typed-squares
03-board-struct
04-impl-for-board
05-unit-tests
06-trait
07-trait-derive
08-Display
09-modules
09.5-before-main-generic
10-generics
11-flip-coin
13 results
Swap
Target
michael.hauspie/intro-rust-game
Select target project
michael.hauspie/intro-rust-game
1 result
134b9ff165b75332b89c929a0984285dea64fb4c
Select Git revision
Branches
main
Tags
01-simple-board
02-typed-squares
03-board-struct
04-impl-for-board
05-unit-tests
06-trait
07-trait-derive
08-Display
09-modules
09.5-before-main-generic
10-generics
11-flip-coin
13 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
fix comments
· 4ade204f
Michael Hauspie
authored
2 years ago
4ade204f
Update slides
· 13872a67
Michael Hauspie
authored
2 years ago
13872a67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
intro-rust.pdf
+0
-0
0 additions, 0 deletions
intro-rust.pdf
src/board/mod.rs
+2
-2
2 additions, 2 deletions
src/board/mod.rs
with
2 additions
and
2 deletions
intro-rust.pdf
View file @
13872a67
No preview for this file type
This diff is collapsed.
Click to expand it.
src/board/mod.rs
View file @
13872a67
//! A module that implements several
board
games
//! A module that implements several games
pub
mod
tictactoe
;
pub
mod
tictactoe
;
pub
mod
coin_flip
;
pub
mod
coin_flip
;
/// A trait that defines a
Board for a
game where we can make a player
/// A trait that defines a game where we can make a player
/// play a move and check if a player has won
/// play a move and check if a player has won
pub
trait
Game
<
Move
,
Player
>
{
pub
trait
Game
<
Move
,
Player
>
{
...
...
This diff is collapsed.
Click to expand it.