Been a while for me
Briefly, I've been preoccupied writing my first simple computer game. It isn't the poker game I'd mentioned in the past. I decided instead to write the classic Battleship. This game uses all of the things I've already learned in class or on my own, namely, two dimensional arrays, structures, functions, switches, lots of ifs, if else, relational operators, random number generation, error detecting input protocol, converstion of character input to number.
I am almost done. The toughest part I've discovered is programming that which I haven't covered in class or my readings yet, AI. The functions involved with the computer opponent doing some intelligent bombing (once it randomly locates one of your ships). I've already spent 6 or 7 hours and have finally come to the conclusion I have to scrap my present algorithm because I just can't get it to work in all ship configurations. Before I went to sleep last night I thought of a better way to approach the problem, and feel I'll be able to get it to work, in all instances.
I certainly hope so because I wanted to be done with the AI by now. I have more features I want to add to the program after its basic operations are working.
1: get some wav. files to work with it. (or at least tweek the Beep commands I'm using now so they sound like incoming shells).
2: add a start screen with simple graphics (very simple since this is a console program).
3: test different computer opponent search patterns to see which is the best, next best, and so on
4: add a difficult-of-play selection using the aforementioned search patterns (for example, the easiest setting would be totally random bombing with no switching to AI bombing after a hit, the next step up would be the next weakest search pattern with AI bombing after a hit, and so on. )
5: add an options menu with links to Game Instructions/help, Game Sounds on/off, Game histories/statistics
6: add some sort of scoring and save high scores to file (and display the names and highscores in the start screen).
Other than studying for classes, my game project and cooking a couple of meals to eat throughout the week, I haven't been doing anything else. I've very short on time.
Oh, also, the 28th I will be participating in the ACM computer programming competition.