[SOLVED] CSE241 -HW02

30.00 $

Category:

Description

Rate this product

Object Oriented Programming 

 

 

You will continue developing your Hex program with this homework. You will add the following features to your program.

  • Your program should accept commands for loading and saving the game board. For example, instead of giving the column letters, if the user enters the command

LOAD FILE.TXT

your program loads the game board from this file. Similarly, if the user enters the command

SAVE FILE.TXT

your program saves the current game status to this file. You should save and load all game related information such as user vs user or computer, board size etc.

  • Your program should have at least one function that takes a parameter by reference and a constant parameter by reference.
  • Your program should have at least one function that uses default arguments.
  • Your program should have at least one auto statement and one declrtype  Your cell states should be represented using C++11 Enum types.
  • All the errors should be printed to cerr object and all the other text should be sent to cout.

 

The rest of the program will be the same as HW1.