Sabtu, 29 November 2014

PROGRAM GAME MAZE

0

Pseudocode
Program Game_maze
Input : nama, id, jalur, proses
Deklarasi
jalur, proses : int
nama, id : String
Description
Begin
Println("=============================================");
Println("                   MAZE                      ");
Println("=============================================");
Println("Selamat datang dalam game Maze Kelompok 38");
Writeln("Nama    : ");
Read(nama);
Writeln("User ID : ");
Read(id);
Println("_____________________________________________");
Println("");
Println("SELAMAT BERMAIN "+id);
Println("");
Println("------------------------------------------------------|");
Println("  mulai  O        |    |   |    |               |     |");               
Println("------|       |   |    |---|    |------|        |     |");
Println("      |       |   |    |   |           |        |     |");              
Println("      |       |   |----|   |           |        |     |");
Println("      |       |    |       |           |      |--     |");               
Println("   ---|       |    |  |----|           |      |       |");
Println("   |          |----|  |                |      |       |");               
Println("   |                  |                |      |       |");
Println("   |                  |        |-------|      |       |");               
Println("   |--------------|   |        |              |       |");
Println("                  |   |        |              |       |");              
Println("--|               |   |   |    |       |------|       |");
Println("  |               |   |   |    |       |              |");              
Println("  |   |-----------|   |---|    |       |              |");
Println("--|   |                   |    |       |--            |");                
Println("      |                   |    |   |     |------------|");
Println("      |    |    |---|     |    |   |                  |");              
Println("------|    |    |   |-----|    |---|                  |");
Println("      |    |    |         |    |   |     |      |     |");              
Println("      |    ------        -|----|---|---- |      |     |");
Println("      |     |   |        |     |         |      |     |");               
Println("------|     |---|--------|     |----------------|     |");
Println("           1                2                      3   ");
Println("");
Writeln("Jalur Mana yang anda pilih ? ");
Read(jalur);
if (jalur==1){
Println("SELAMAT ANDA MENANG");
Writeln("Ingin melihat proses dari Maze ? (1.Ya) (2.No)");
Read(proses);
{while(proses<2){--proses;
Println("");
Println("------------------------------------------------------|");
Println("  mulai  O        |    |   |    |               |     |");               
Println("------|       |   |    |---|    |------|        |     |");
Println("      |       |   |    |   |           |        |     |");              
Println("      |       |   |----|   |           |        |     |");
Println("      |       |    |       |           |      |--     |");               
Println("   ---|       |    |  |----|           |      |       |");
Println("   |          |----|  |                |      |       |");               
Println("   |                  |                |      |       |");
Println("   |                  |        |-------|      |       |");               
Println("   |--------------|   |        |              |       |");
Println("                  |   |        |              |       |");              
Println("--|               |   |   |    |       |------|       |");
Println("  |               |   |   |    |       |              |");              
Println("  |   |-----------|   |---|    |       |              |");
Println("--|   |                   |    |       |--            |");                
Println("      |                   |    |   |     |------------|");
Println("      |    |    |---|     |    |   |                  |");              
Println("------|    |    |   |-----|    |---|                  |");
Println("      |    |    |         |    |   |     |      |     |");              
Println("      |    ------        -|----|---|---- |      |     |");
Println("      |     |   |        |     |         |      |     |");               
Println("------|     |---|--------|     |----------------|     |");
Println("           1                2                      3   ");
Println(“ ”);
Println("------------------------------------------------------|");
Println("  mulai           |    |   |    |               |     |");               
Println("------|       |   |    |---|    |------|        |     |");
Println("      |       |   |    |   |           |        |     |");              
Println("      |  o    |   |----|   |           |        |     |");
Println("      |       |    |       |           |      |--     |");               
Println("   ---|       |    |  |----|           |      |       |");
Println("   |          |----|  |                |      |       |");               
Println("   |                  |                |      |       |");
Println("   |                  |        |-------|      |       |");               
Println("   |--------------|   |        |              |       |");
Println("                  |   |        |              |       |");              
Println("--|               |   |   |    |       |------|       |");
Println("  |               |   |   |    |       |              |");              
Println("  |   |-----------|   |---|    |       |              |");
Println("--|   |                   |    |       |--            |");                
Println("      |                   |    |   |     |------------|");
Println("      |    |    |---|     |    |   |                  |");              
Println("------|    |    |   |-----|    |---|                  |");
Println("      |    |    |         |    |   |     |      |     |");              
Println("      |    ------        -|----|---|---- |      |     |");
Println("      |     |   |        |     |         |      |     |");               
Println("------|     |---|--------|     |----------------|     |");
Println("           1                2                      3   ");
Println("");
Println("------------------------------------------------------|");
Println("  mulai           |    |   |    |               |     |");               
Println("------|       |   |    |---|    |------|        |     |");
Println("      |       |   |    |   |           |        |     |");              
Println("      |       |   |----|   |           |        |     |");
Println("      |       |    |       |           |      |--     |");               
Println("   ---|       |    |  |----|           |      |       |");
Println("   |          |----|  |                |      |       |");               
Println("   |                  |                |      |       |");
Println("   |      o           |        |-------|      |       |");               
Println("   |--------------|   |        |              |       |");
Println("                  |   |        |              |       |");              
Println("--|               |   |   |    |       |------|       |");
Println("  |               |   |   |    |       |              |");              
Println("  |   |-----------|   |---|    |       |              |");
Println("--|   |                   |    |       |--            |");                
Println("      |                   |    |   |     |------------|");
Println("      |    |    |---|     |    |   |                  |");              
Println("------|    |    |   |-----|    |---|                  |");
Println("      |    |    |         |    |   |     |      |     |");              
Println("      |    ------        -|----|---|---- |      |     |");
Println("      |     |   |        |     |         |      |     |");               
Println("------|     |---|--------|     |----------------|     |");
Println("           1                2                      3   ");
Println("");
Println("------------------------------------------------------|");
Println("  mulai           |    |   |    |               |     |");                
Println("------|       |   |    |---|    |------|        |     |");
Println("      |       |   |    |   |           |        |     |");              
Println("      |       |   |----|   |           |        |     |");
Println("      |       |    |       |           |      |--     |");               
Println("   ---|       |    |  |----|           |      |       |");
Println("   |          |----|  |                |      |       |");               
Println("   |                  |                |      |       |");
Println("   |                  |        |-------|      |       |");               
Println("   |--------------| o |        |              |       |");
Println("                  |   |        |              |       |");               
Println("--|               |   |   |    |       |------|       |");
Println("  |               |   |   |    |       |              |");              
Println("  |   |-----------|   |---|    |       |              |");
Println("--|   |                   |    |       |--            |");                
Println("      |                   |    |   |     |------------|");
Println("      |    |    |---|     |    |   |                  |");              
Println("------|    |    |   |-----|    |---|                  |");
Println("      |    |    |         |    |   |     |      |     |");              
Println("      |    ------        -|----|---|---- |      |     |");
Println("      |     |   |        |     |         |      |     |");               
Println("------|     |---|--------|     |----------------|     |");
Println("           1                2                      3   ");
Println("");
Println("------------------------------------------------------|");
Println("  mulai           |    |   |    |               |     |");               
Println("------|       |   |    |---|    |------|        |     |");
Println("      |       |   |    |   |           |        |     |");              
Println("      |       |   |----|   |           |        |     |");
Println("      |       |    |       |           |      |--     |");               
Println("   ---|       |    |  |----|           |      |       |");
Println("   |          |----|  |                |      |       |");                
Println("   |                  |                |      |       |");
Println("   |                  |        |-------|      |       |");               
Println("   |--------------|   |        |              |       |");
Println("                  |   |        |              |       |");              
Println("--|               |   |   |    |       |------|       |");
Println("  |               |   |   |    |       |              |");              
Println("  |   |-----------|   |---|    |       |              |");
Println("--|   |                   |    |       |--            |");                
Println("      |             o     |    |   |     |------------|");
Println("      |    |    |---|     |    |   |                  |");              
Println("------|    |    |   |-----|    |---|                  |");
Println("      |    |    |         |    |   |     |      |     |");              
Println("      |    ------        -|----|---|---- |      |     |");
Println("      |     |   |        |     |         |      |     |");               
Println("------|     |---|--------|     |----------------|     |");
Println("           1                2                      3   ");
Println("");
Println("");
Println("------------------------------------------------------|");
Println("  mulai           |    |   |    |               |     |");               
Println("------|       |   |    |---|    |------|        |     |");
Println("      |       |   |    |   |           |        |     |");              
Println("      |       |   |----|   |           |        |     |");
Println("      |       |    |       |           |      |--     |");               
Println("   ---|       |    |  |----|           |      |       |");
Println("   |          |----|  |                |      |       |");               
Println("   |                  |                |      |       |");
Println("   |                  |        |-------|      |       |");               
Println("   |--------------|   |        |              |       |");
Println("                  |   |        |              |       |");              
Println("--|               |   |   |    |       |------|       |");
Println("  |               |   |   |    |       |              |");              
Println("  |   |-----------|   |---|    |       |              |");
Println("--|   |  o                |    |       |--            |");                
Println("      |                   |    |   |     |------------|");
Println("      |    |    |---|     |    |   |                  |");              
Println("------|    |    |   |-----|    |---|                  |");
Println("      |    |    |         |    |   |     |      |     |");              
Println("      |    ------        -|----|---|---- |      |     |");
Println("      |     |   |        |     |         |      |     |");               
Println("------|     |---|--------|     |----------------|     |");
Println("           1                2                      3   ");
Println("");
Println("------------------------------------------------------|");
Println("  mulai           |    |   |    |               |     |");               
Println("------|       |   |    |---|    |------|        |     |");
Println("      |       |   |    |   |           |        |     |");              
Println("      |       |   |----|   |           |        |     |");
Println("      |       |    |       |           |      |--     |");               
Println("   ---|       |    |  |----|           |      |       |");
Println("   |          |----|  |                |      |       |");               
Println("   |                  |                |      |       |");
Println("   |                  |        |-------|      |       |");               
Println("   |--------------|   |        |              |       |");
Println("                  |   |        |              |       |");               
Println("--|               |   |   |    |       |------|       |");
Println("  |               |   |   |    |       |              |");              
Println("  |   |-----------|   |---|    |       |              |");
Println("--|   |                   |    |       |--            |");                
Println("      |                   |    |   |     |------------|");
Println("      |    |    |---|     |    |   |                  |");              
Println("------|    |    |   |-----|    |---|                  |");
Println("      |    |    |         |    |   |     |      |     |");              
Println("      |    ------        -|----|---|---- |      |     |");
Println("      |     |   |        |     |         |      |     |");               
Println("------|  o  |---|--------|     |----------------|     |");
Println("           1                2                      3   ");
Println(“ “);
Println("------------------------------------------------------|");
Println("  mulai           |    |   |    |               |     |");               
Println("------|       |   |    |---|    |------|        |     |");
Println("      |       |   |    |   |           |        |     |");              
Println("      |       |   |----|   |           |        |     |");
Println("      |       |    |       |           |      |--     |");               
Println("   ---|       |    |  |----|           |      |       |");
Println("   |          |----|  |                |      |       |");               
Println("   |                  |                |      |       |");
Println("   |                  |        |-------|      |       |");               
Println("   |--------------|   |        |              |       |");
Println("                  |   |        |              |       |");              
Println("--|               |   |   |    |       |------|       |");
Println("  |               |   |   |    |       |              |");               
Println("  |   |-----------|   |---|    |       |              |");
Println("--|   |                   |    |       |--            |");                
Println("      |                   |    |   |     |------------|");
Println("      |    |    |---|     |    |   |                  |");              
Println("------|    |    |   |-----|    |---|                  |");
Println("      |    |    |         |    |   |     |      |     |");              
Println("      |    ------        -|----|---|---- |      |     |");
Println("      |     |   |        |     |         |      |     |");               
Println("------|     |---|--------|     |----------------|     |");
Println("        o  1                2                      3   ");
Println("");
Println("");
Println("");
}}
if (jalur==2){
Println("GAME OVER");
Println("MOHON MAAF "+id+"ANDA TIDAK DAPAT MELANJUTKAN PERMAINAN");
}
else if (jalur==3){
Println("GAME OVER");
Println("MOHON MAAF "+id+"ANDA TIDAK DAPAT MELANJUTKAN PERMAINAN");
}
Else
Println(“Jalur tidak tersedia”);
End



FLOWCHART



SCREENSHOT PROGRAM









sealkazzsoftware.blogspot.com resepkuekeringku.com