GROOVIE: Fix warning of mismatched prototype

This commit is contained in:
Eugene Sandulenko 2023-11-18 18:55:14 +01:00
parent a5ed6cdf5e
commit b657ff8ef2
No known key found for this signature in database
GPG Key ID: 014D387312D34F08
2 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,6 @@ const byte GalleryGame::kGalleryLinks[21][10] = {
{12, 14, 15, 18, 20, 0, 0, 0, 0, 0 } // 21
};
const int kPieceCount = 21;
enum kGalleryPieceStatus {
kPieceUnselected = 0,
kPieceSelected = 1

View File

@ -76,6 +76,8 @@ namespace Groovie {
* +-----------+--------+-----------------------------------------+
*/
const int kPieceCount = 21;
class GalleryGame {
public:
GalleryGame(bool easierAi) {
@ -95,7 +97,7 @@ private:
void test();
void ensureSamanthaWins(int seed);
void testsWriteMove(int move, byte pieceStatus[]);
void testsWriteMove(int move, byte pieceStatus[kPieceCount]);
};
} // End of Groovie namespace