Start by defining enums for pieces and the board.
This commit is contained in:
parent
c28458ff43
commit
f20aa6989c
|
@ -13,3 +13,4 @@ The project's aim is to make a game capable of supporting:
|
||||||
|
|
||||||
- [Website](http://justcheckers.dorianpula.ca/)
|
- [Website](http://justcheckers.dorianpula.ca/)
|
||||||
- [Project Source](https://bitbucket.org/dorianpula/justcheckers/)
|
- [Project Source](https://bitbucket.org/dorianpula/justcheckers/)
|
||||||
|
- [Worlds Draughts Federation](https://fmjd.org/)
|
||||||
|
|
|
@ -1,3 +1,17 @@
|
||||||
|
enum Token {
|
||||||
|
LightMan,
|
||||||
|
LightKing,
|
||||||
|
DarkKing,
|
||||||
|
DarkMan,
|
||||||
|
}
|
||||||
|
|
||||||
|
enum Space {
|
||||||
|
Empty,
|
||||||
|
Token,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in New Issue