A simple 7 on 7 checkers code in C for two players-A and B.
The a player inserts two coordinations for a his piece board. if the coordinations are not valid, print "bad input, try again", and print this message until the player enters valid coordinations. after a good input, the player is asked to insert another input of two coordinations ,where to move his piece. again, if the input is bad, it should print "bad input , try again" in a loop, until the player gets it right. After that, it prints the entire board, with the piece placed in it's new location.
Once a move is complete, and the "updated" board is printed, it will write "player B, now is your move", and the same procedure as with player A , until someone will win.
Winning conditions: all the pieces of the opponent are eaten, 12 in total, OR a piece has made it all the way to the other side of the board.
The winner will be announced with a message "player X had won". and will ask the user if he would like to play another game. if the user enter "y" , then a new game will start, if the user enter "n", then the program will exit.
If a player eats a piece of his opponent, a message will be printed "a piece of the opponent was eaten" before printing the updated board. (followed by an updated score and the number of plays in total)
There will be a score count of eaten pieces on top of the board for both players, and a play counter everytime the board was printed.
If any user, at any time, input "100" as a coordination, it will print out "player X forfeited, would you like to play another game? y/n. for "y", starts a new game, for "n", exit.
There MUST be the following functions: placePiece(board) , printBoard(board), isMoveLegal(board), isPieceMovable(board, *any other variables u would like), and any additional function you will think you need, but at least 10 functions overall .
There is no queen in the game, nor eating pieces back
10 freelancers are bidding on average $167 for this job
hello how are you? i have good experience in developing c program i read your proposal and can do it perfectly. i hope working your project. please contact with me. thank you.