Tuesday, 20 December 2011

maintainability

added maintainability by making white spaces to easily read code, and green text to describe what each part does, printed offmade questionaires for testing, began gantt chart
got results from testing, done making psuadocode
completed gantt chart
redragheded origional project plan
wrote test report
wrote evaluation report
handed in finished project

Saturday, 17 December 2011

the code is done :D

added selection sort for veriety, added a 2-D array into the beggining to help with shuffeling. added 3 new forms, a menu, a instruction form and a highscore form. added in algorithm to end game and display winning (or second place) message upon losing last card. implemented a way to switch between forms (.show and . hide)
filled instruction form with text detailing how to play, made highscore form able to read from highscore file and create it if it is not availiable (H:/highscores). added part in which winning user is asked if they want their score saved, if they click yes it writes to and appends file to save their score and name which is asked for after.added more maintainabillity by adding in green text and spaces.. also sent away with questionaire for testing. created title page.

Tuesday, 15 November 2011

the end of the horizon

added messages to tell player that another player has run out of cards
working on way to end the game after 2 players have won as cheat becomes unrealistic when logical decisions occur when cheat boils down to 2 players

todo list
- end the game
- add selection sorts for veriety
- add file handling to create and read and edit highscores
- add initial form with instructions and access to highscores
- test among classmates

cards dont lie

has had trouble updating recently so brief updates
removed some buttons and replaced with subroutines (finish turn and claim cards) to make program more streamlined
added 52 buttons for all possible decks
made bubble sort mechanisms to make values look nicer, may add selection sort later for diversity
remade number to card translation subroutine called translate, gives a textual value to numbers in deck and also to last card in table pile
added ability for computer to shout cheat by randomly selecting a number, if 1 is chosen then cheat will be shouted by a random player or more and  depending on if a boolean value (cheattruefalse) is true or not the pile is moved into the p1 array or the accusers array deck
added subroutines to disable all 52 cmddeck buttons on command and also check if they are disabled, also added subroutine to make buttons enabled from 1 to number of cards player has left if there are no cards in pile or they decide to cheat
added subroutines to make players 2-4 play in order by searching to see if they can place a card of matching value, and if not select random cards from pile to cheat with
added code to ask the player if they want to cheat, cheattruefalse depends on this value. if player has no options and has to cheat because they're cards do not match then cheattruefalse is automatically true
added translation subroutines for each of the cpu players
made auto updating timer subroutine which updates on screen details every 5th of a second, may be removed later to reduce processor usage
added subroutine to let p1 play after turns of p2-p4 and detect whether any card can be played due to no cards in pile or if a matching value of card can be used or if only option is to cheat
added system of random numbers and if statements to determine if cpu will call cheat on itself, asks player beforehand if they think the cpu cheated, if they select yes and the cpu is not fast enough (number selected =/= resulting in cpu calling cheat) they will either claim or give the pile from/to the cpu player depending on if they cheated or not. cpu can still beat the player and call cheat first if the random number reflects this outcome, selecting "no" will result in nothing being called or a cpu player randomly calling cheat

Thursday, 6 October 2011

cheating computers

made basic cheat button algorithm to return cards into players deck 1 at a time, work needs to be done untill whole pile is transfered in one click. made winning message for when pile = 0
played around with timers and subroutines to start planning how the computer will use this data and play as 3 different players with time delays inbetween

Friday, 30 September 2011

documents

created and stored away proect plan, feasability and scope and boundarys in red folder

Wednesday, 28 September 2011

deleting arrays

found out how to remove array item by redimming and "sliding" each array item to left if they are larger than card selected.