MicroCheckers: Multiplayer checkers!


(Jezzamon) #1

A new game! MicroCheckers! It’s the standard game of checkers, also known as draughts. Here’s the Wikipedia page if somehow you haven’t heard of it.

Gameplay Video

https://vine.co/v/iLl5xYe0JZp

You can download the code from here:

Controls:

  • Use the arrow keys to move the selection
  • Press ‘b’ on a piece to select it, and then press ‘b’ on the square you want to move it to.
  • Press ‘a’ to cancel your selection.
  • Once you’re done with your move, pass the Arduboy to the other player!

Other Points:

  • There is forced capture, so if you can jump over a piece, you have to.
  • There’s no win screen at the moment, but you win when you remove all your oponent’s pieces.
  • To play again, simply restart the Arduboy.

The next thing I would add is a title screen, and then maybe even an AI. It depends on whether I have time to… :sweat:


Eried's Unofficial Repo :)
"Semi-Official" Game List for the Arduboy
Eried's Unofficial Repo :)
(Jezzamon) #2

I’ve added a title screen and menu! Yay! :smile:

It’s super minimal at the moment, so if anyone feels like making some nice graphics, go for it!

The next thing I’d want to add in an AI. It seems really fun, so I might actually manage to do it!


(Evan Reece) #3

I get this when I try to upload this to my arduboy.
Arduino: 1.6.12 (Mac OS X), Board: “Arduino Leonardo”

Build options changed, rebuilding all
/Users/reecefamily/Documents/Arduino/libraries/MicroCheckers-master/MicroCheckers/MicroCheckers.ino: In function ‘void drawMenu()’:
/Users/reecefamily/Documents/Arduino/libraries/MicroCheckers-master/MicroCheckers/MicroCheckers.ino:574:38: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
writeText(25, 10, “MicroCheckers”);
^
/Users/reecefamily/Documents/Arduino/libraries/MicroCheckers-master/MicroCheckers/MicroCheckers.ino:576:56: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
writeOption(30, 30, " Start", currentMoveState == 0);
^
/Users/reecefamily/Documents/Arduino/libraries/MicroCheckers-master/MicroCheckers/MicroCheckers.ino:577:63: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
writeOption(30, 40, " Instructions", currentMoveState == 1);
^
/Users/reecefamily/Documents/Arduino/libraries/MicroCheckers-master/MicroCheckers/MicroCheckers.ino: In function ‘void drawInstructions()’:
/Users/reecefamily/Documents/Arduino/libraries/MicroCheckers-master/MicroCheckers/MicroCheckers.ino:587:26: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
“Press A to cancel.\n”
^
/Users/reecefamily/Documents/Arduino/libraries/MicroCheckers-master/MicroCheckers/MicroCheckers.ino: In function ‘void drawBoard()’:
MicroCheckers:605: error: ‘whitePiece’ was not declared in this scope
bitmap = whitePiece;
^
MicroCheckers:608: error: ‘blackPiece’ was not declared in this scope
bitmap = blackPiece;
^
MicroCheckers:611: error: ‘whiteKing’ was not declared in this scope
bitmap = whiteKing;
^
MicroCheckers:614: error: ‘blackKing’ was not declared in this scope
bitmap = blackKing;
^
Multiple libraries were found for "bitmaps.h"
Used: /Users/reecefamily/Documents/Arduino/libraries/VLQP_AB_v12
Not used: /Users/reecefamily/Documents/Arduino/libraries/SRN_AB_v11
Not used: /Users/reecefamily/Documents/Arduino/libraries/O.Y.G.D
Not used: /Users/reecefamily/Documents/Arduino/libraries/MicroCheckers-master
Not used: /Users/reecefamily/Documents/Arduino/libraries/MYBL_AB_v15
Not used: /Users/reecefamily/Documents/Arduino/libraries/FlappyBall-master
Not used: /Users/reecefamily/Documents/Arduino/libraries/CowBro-master
Not used: /Users/reecefamily/Documents/Arduino/libraries/BLBA_AB_v16
Not used: /Users/reecefamily/Documents/Arduino/libraries/SRN_AB_v11
Not used: /Users/reecefamily/Documents/Arduino/libraries/O.Y.G.D
Not used: /Users/reecefamily/Documents/Arduino/libraries/MicroCheckers-master
Not used: /Users/reecefamily/Documents/Arduino/libraries/MYBL_AB_v15
Not used: /Users/reecefamily/Documents/Arduino/libraries/FlappyBall-master
Not used: /Users/reecefamily/Documents/Arduino/libraries/CowBro-master
Not used: /Users/reecefamily/Documents/Arduino/libraries/BLBA_AB_v16
Not used: /Users/reecefamily/Documents/Arduino/libraries/SRN_AB_v11
Not used: /Users/reecefamily/Documents/Arduino/libraries/O.Y.G.D
Not used: /Users/reecefamily/Documents/Arduino/libraries/MicroCheckers-master
Not used: /Users/reecefamily/Documents/Arduino/libraries/MYBL_AB_v15
Not used: /Users/reecefamily/Documents/Arduino/libraries/FlappyBall-master
Not used: /Users/reecefamily/Documents/Arduino/libraries/CowBro-master
Not used: /Users/reecefamily/Documents/Arduino/libraries/BLBA_AB_v16
Not used: /Users/reecefamily/Documents/Arduino/libraries/SRN_AB_v11
Not used: /Users/reecefamily/Documents/Arduino/libraries/O.Y.G.D
Not used: /Users/reecefamily/Documents/Arduino/libraries/MicroCheckers-master
Not used: /Users/reecefamily/Documents/Arduino/libraries/MYBL_AB_v15
Not used: /Users/reecefamily/Documents/Arduino/libraries/FlappyBall-master
Not used: /Users/reecefamily/Documents/Arduino/libraries/CowBro-master
Not used: /Users/reecefamily/Documents/Arduino/libraries/BLBA_AB_v16
exit status 1
’whitePiece’ was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


(Scott) #4

@evan4765, You shouldn’t be putting sketches in the libraries folder. Sketch folders should go directly under Arduino or in subfolders other than libraries.

http://community.arduboy.com/t/adding-programs-sketches-to-the-arduino-ide/1133/1


(Kevin) #5

What a perfect companion to Chess:

http://community.arduboy.com/t/little-rook-chess/