Skip to content
Snippets Groups Projects
Commit a50d3c7a authored by Gaste Adrien's avatar Gaste Adrien
Browse files

Représentation des 8 pingouins

parent 9c5ad29f
No related branches found
No related tags found
No related merge requests found
Nombre maximum de coups possibles par direction : 7
Structure 1 pingouin (bitlist sur 32 bits) :
+ + + + + +
| ??|Nb coups possibles ...|Nb coups possibles| Nombre total | Position sur |
| |direction F |direction A | de coups | le plateau (0-59) |
+------------------------------------------------------------+-------------------+
2 | 3 bits 3 bits | 6 bits 6 bits
| |
| |
+-----------------------------------------+
18 bits
==> 8 structures pingouin
Nom des joueurs : Red, Blue
3 bitboards pour les poissons
==> OR des 3 bitboards : l'eau
Bitboard obstacles : 1 s'il y a un obstacle
0 sinon
==> ~Bitboard eau (OR 1 << Pos. pingouin1) (OR 1 << Pos. pingouin2)...(OR 1 << Pos. pingouin8)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment