Wednesday, March 21, 2012
Clear thoughts and finished programs
After starting over from scratch I decided to give the two programs another attempt. I did find a flaw with the tic tac toe simulator. If it is all random numbers then there is a chance that X or O can move in a disproportionate amount of times in respects to each other. By default there are 8 possible ways to win for either X or O. However, in the program both could possibly win with two horizontal wins or two vertical wins. Also the program will pick X as the winner in the event that there are two winners. Although the name search just took some getting used to utilizing the Binary Search method, I found the tic tac toe simulator to be a challenge that was fun. I look forward to the coming weeks and increasing my knowledge on C# programming. Good luck everyone.
Monday, March 19, 2012
Name Search and Tic Tac Toe
After about a week of trying to get these programs to work. I have deleted them and decided to start from scratch again. These are really frustrating problems. Some reason I can't quite figure out how to get the text files to open, I keep getting errors such as unable to open when using StreamReader. The tic tac toe simulation is another major headache. I can't get them into two arrays to display the X's and O's. Maybe tomorrow with a fresh start I can begin to make headway on these two assignments.
Thursday, March 8, 2012
Chapter 7 arrays
This would normally be one of my least favorite areas, before programming. Before programming the thing that popped into my head when arrays were mentioned were matrices that I had a tough time within Calculus. Now arrays are a simpler way to do things instead of having to enter in variables one at a time, they can be placed in an array for reference later. I do appreciate the Sequential Search Slide, as a more visual person it does help to see code before being able to use it. I have a feeling that it will come in handy with the two assignments, but I will attempt them over the weekend since it is an extended week due to Spring Break. Have fun and stay safe all.
Subscribe to:
Posts (Atom)