Kalah - Undo feature

Închis Postat la acum 3 ani S-au achitat serviciile după ce au fost prestate
Închis S-au achitat serviciile după ce au fost prestate

Implement that "Undo" change case based on my code. This allows the current player to undo their last move. The player specifies that they want to undo their move with 'u'.

Undo applies to a "move" not a "turn". Players take turns, during which they indicate what move they want to make. So, for example, if their first choice ends in their own store, they get to choose another house, that is, make another move.

The undo comment returns the state of the game to what it was before their last move. If they had multiple moves, they can undo multiple times. Note that there is no "redo".

If they have not made any moves in their turn, or have undone all the moves they made, then if they try to undo the response should be "Invalid command. Try again."

New implementation must pass all the tests

Java Object Oriented Programming (OOP) Arhitectură software

ID Proiect: #27787023

Detalii despre proiect

2 propuneri Proiect la distanță Activ acum 3 ani

2 freelanceri plasează o ofertă medie de 19$ pentru proiect

ExpertSoul

Hello, I've complete MS Software Engineering. I've 5-Year experience in Java development and algorithm implementation. My Core Expertise in Java - C++ - C - object-oriented - Data Structure - Swing - OpenGL - JavaFX. Mai multe

$23 NZD în 1 zi
(89 recenzii)
5.8
AlphaOmega1111

Hello. I have experience in Java development and OOP and can help. Feel free to contact me to discuss the details.

$15 NZD în 1 zi
(0 recenzii)
0.0