Project "Chess board"
Programming language: C#
(ATTENTION: nothing else is required, except mentioned stuff. Anything extra is not necessary!)
- All data fields are Private
* All data fields have Public standard "Getter" and "Setter" -methods (use with Properties)
- In "Setter"-method it is required to verify the new information inputted.
- All classes have "Default Constructor" and another Constructor, where is input-parameters for given information
"Location", with data fields:
- char column;
- int row;
"Piece", Minimum data fields required:
- Location location
and member functions:
- virtual bool move(Location location);
(Is able to move from anywhere, to anywhere, returns True)
"Pawn" (inherits from "Piece")
- virtual bool move(Location location);
(Moves to a new location, if it is a legal move. Returns True or False)
"Bishop" (inherits from "Piece")
- virtual bool move(Location location);
(Moves to a new location, if it is a legal move. Returns True or False)
Chessboard, with data fields:
- Game_Pieces -array
member functions:
- bool add(Piece p)
(adds a Piece to the board (to the array) and returns True if the Piece can be added more. If there is already enough of Piece in the board-array and if there isn't already a Piece in the Location
- Piece delete(Location p)
(returns deleted piece if the location isn't empty. otherwise returns null-object)
- bool move(Location from, Location to)
(moves piece from "from" to "to", if "from"-location is found and the move to "to"-location is legal move. Returns either True or False)
Main()
- create a Chessboard-object and show some Pieces and their legal and illegal moves.
NOTHING ELSE REQUIRED!!
EVERYTHING HAS TO BE IN ONE FILE!
I have a general idea of what is required but I will need a copy of whatever documentation you were given.
Relevant Skills and Experience
C/C++ programming.
Proposed Milestones
€15 EUR - Payment after you have received the code.
€15 EUR en 0 día
4,8 (8 comentarios)
3,8
3,8
6 freelancers están ofertando un promedio de €29 EUR por este trabajo