Skip to main content

Posts

Showing posts with the label Game Design

Tic-Tac-Toe Game Design

Tic - Tac - Toe Game Design Algorithm: Take a 2 D Array of size 3X3 initialized to NULL value. Take position for input. Input should be alter automatically as input taken one by one. count number of X and O in the Array if any count of X or O is equal to 3 then go to step 5 check continuity of X or O row-wise, if found go to step 10  check continuity of X or O column-wise, if found go to step 10 check continuity of X or O in Diagonal or Counter Diagonal wise, if found go to step 10 if total input is less than 9 go to step 2 Conclude:: Totally messed up..... go to Step 11 Display the Owner..... The End Program Design (in JAVA): import java.io.*; class Game {     public static void main (String args[]) throws IOException     {         BufferedReader inp=new BufferedReader (new InputStreamReader (System.in));     int z=0;     int flag=0;   ...

VIDEO CASINO (Slot Machine)

Many People spend their time and money to play CASINO Game in Hi-fi Hotel... They do in real. But if you want to spoil your money virtualy and time realy then u can use following game... So, not spoiling our time let's talk about the game design... This Game simply constructed in C Language but in console(DOS) mode also. Procedure used:: Set Player's Initial cash Take a Number between 0 to 100 from Player as input Check for valid input if input is valid goto step 5 else goto step 2 Generate a random number between 0 and 100 Compare with Player's input and computer generated Random Number if both match then goto step 8 else goto step 9 Update Win Counter and add the Player input with Player cash . goto step 10 Update Lose Counter and deduce the Player input from Player cash . Check Player's cash goes under 0 or not. if cash is less than or equal to 0 goto step 12 else goto step 2 for play again. End Program:: // Header ...