Skip to content

struts2spring/snakeAndLadder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snakeAndLadder

---------------------------------------------------------------------------------------------------------
| A new SnakeAndLadder game of board size 10 * 12 = 120 						|
| Two player are there in this game Player One and Player Two 						|
| 	 1. snake head and tail are as 									|
| 	 { 31, 14 }, { 37, 17 }, { 73, 53 }, { 78, 39 }, { 92, 35 }, { 99, 7 }, { 98, 2 }  		|
| 	 2. ladder start and end are as 								|
| 	 { 5, 25 }, { 10, 29 }, { 22, 41 }, { 28, 55 }, { 44, 95 }, { 70, 89 }, { 79, 81 }  		|
| A new game begin. 											|
---------------------------------------------------------------------------------------------------------

Player One from current postion 0 rolled dice and Output is:1

Player Two from current postion 0 rolled dice and Output is:2

Player One from current postion 1 rolled dice and Output is:1

Player Two from current postion 2 rolled dice and Output is:6

Player One from current postion 2 rolled dice and Output is:4

Player Two from current postion 8 rolled dice and Output is:4

Player One from current postion 6 rolled dice and Output is:5

Player Two from current postion 12 rolled dice and Output is:3

Player One from current postion 11 rolled dice and Output is:2

Player Two from current postion 15 rolled dice and Output is:1

Player One from current postion 13 rolled dice and Output is:1

Player Two from current postion 16 rolled dice and Output is:1

Player One from current postion 14 rolled dice and Output is:5

Player Two from current postion 17 rolled dice and Output is:3

Player One from current postion 19 rolled dice and Output is:1

Player Two from current postion 20 rolled dice and Output is:4

Player One from current postion 20 rolled dice and Output is:6

Player Two from current postion 24 rolled dice and Output is:6

Player One from current postion 26 rolled dice and Output is:6

Player Two from current postion 30 rolled dice and Output is:3

Player One from current postion 32 rolled dice and Output is:5
Player One got snake bite

Player Two from current postion 33 rolled dice and Output is:2

Player One from current postion 17 rolled dice and Output is:4

Player Two from current postion 35 rolled dice and Output is:3

Player One from current postion 21 rolled dice and Output is:6

Player Two from current postion 38 rolled dice and Output is:2

Player One from current postion 27 rolled dice and Output is:3

Player Two from current postion 40 rolled dice and Output is:4
Player Two got ladder

Player One from current postion 30 rolled dice and Output is:1
Player One got snake bite

Player Two from current postion 95 rolled dice and Output is:4
Player Two got snake bite

Player One from current postion 14 rolled dice and Output is:1

Player Two from current postion 7 rolled dice and Output is:2

Player One from current postion 15 rolled dice and Output is:5

Player Two from current postion 9 rolled dice and Output is:1
Player Two got ladder

Player One from current postion 20 rolled dice and Output is:3

Player Two from current postion 29 rolled dice and Output is:5

Player One from current postion 23 rolled dice and Output is:3

Player Two from current postion 34 rolled dice and Output is:1

Player One from current postion 26 rolled dice and Output is:6

Player Two from current postion 35 rolled dice and Output is:2
Player Two got snake bite

Player One from current postion 32 rolled dice and Output is:1

Player Two from current postion 17 rolled dice and Output is:6

Player One from current postion 33 rolled dice and Output is:1

Player Two from current postion 23 rolled dice and Output is:3

Player One from current postion 34 rolled dice and Output is:5

Player Two from current postion 26 rolled dice and Output is:6

Player One from current postion 39 rolled dice and Output is:2

Player Two from current postion 32 rolled dice and Output is:1

Player One from current postion 41 rolled dice and Output is:6

Player Two from current postion 33 rolled dice and Output is:4
Player Two got snake bite

Player One from current postion 47 rolled dice and Output is:3

Player Two from current postion 17 rolled dice and Output is:2

Player One from current postion 50 rolled dice and Output is:4

Player Two from current postion 19 rolled dice and Output is:1

Player One from current postion 54 rolled dice and Output is:2

Player Two from current postion 20 rolled dice and Output is:3

Player One from current postion 56 rolled dice and Output is:5

Player Two from current postion 23 rolled dice and Output is:3

Player One from current postion 61 rolled dice and Output is:1

Player Two from current postion 26 rolled dice and Output is:4

Player One from current postion 62 rolled dice and Output is:5

Player Two from current postion 30 rolled dice and Output is:1
Player Two got snake bite

Player One from current postion 67 rolled dice and Output is:1

Player Two from current postion 14 rolled dice and Output is:5

Player One from current postion 68 rolled dice and Output is:4

Player Two from current postion 19 rolled dice and Output is:4

Player One from current postion 72 rolled dice and Output is:1
Player One got snake bite

Player Two from current postion 23 rolled dice and Output is:6

Player One from current postion 53 rolled dice and Output is:1

Player Two from current postion 29 rolled dice and Output is:1

Player One from current postion 54 rolled dice and Output is:5

Player Two from current postion 30 rolled dice and Output is:1
Player Two got snake bite

Player One from current postion 59 rolled dice and Output is:6

Player Two from current postion 14 rolled dice and Output is:2

Player One from current postion 65 rolled dice and Output is:4

Player Two from current postion 16 rolled dice and Output is:2

Player One from current postion 69 rolled dice and Output is:2

Player Two from current postion 18 rolled dice and Output is:6

Player One from current postion 71 rolled dice and Output is:5

Player Two from current postion 24 rolled dice and Output is:5

Player One from current postion 76 rolled dice and Output is:5

Player Two from current postion 29 rolled dice and Output is:6

Player One from current postion 81 rolled dice and Output is:2

Player Two from current postion 35 rolled dice and Output is:3

Player One from current postion 83 rolled dice and Output is:3

Player Two from current postion 38 rolled dice and Output is:2

Player One from current postion 86 rolled dice and Output is:4

Player Two from current postion 40 rolled dice and Output is:6

Player One from current postion 90 rolled dice and Output is:1

Player Two from current postion 46 rolled dice and Output is:2

Player One from current postion 91 rolled dice and Output is:3

Player Two from current postion 48 rolled dice and Output is:5

Player One from current postion 94 rolled dice and Output is:4
Player One got snake bite

Player Two from current postion 53 rolled dice and Output is:3

Player One from current postion 2 rolled dice and Output is:2

Player Two from current postion 56 rolled dice and Output is:4

Player One from current postion 4 rolled dice and Output is:1
Player One got ladder

Player Two from current postion 60 rolled dice and Output is:1

Player One from current postion 25 rolled dice and Output is:5

Player Two from current postion 61 rolled dice and Output is:6

Player One from current postion 30 rolled dice and Output is:3

Player Two from current postion 67 rolled dice and Output is:6
Player Two got snake bite

Player One from current postion 33 rolled dice and Output is:1

Player Two from current postion 53 rolled dice and Output is:6

Player One from current postion 34 rolled dice and Output is:4

Player Two from current postion 59 rolled dice and Output is:2

Player One from current postion 38 rolled dice and Output is:5

Player Two from current postion 61 rolled dice and Output is:5

Player One from current postion 43 rolled dice and Output is:6

Player Two from current postion 66 rolled dice and Output is:6

Player One from current postion 49 rolled dice and Output is:6

Player Two from current postion 72 rolled dice and Output is:5

Player One from current postion 55 rolled dice and Output is:2

Player Two from current postion 77 rolled dice and Output is:6

Player One from current postion 57 rolled dice and Output is:5

Player Two from current postion 83 rolled dice and Output is:2

Player One from current postion 62 rolled dice and Output is:6

Player Two from current postion 85 rolled dice and Output is:2

Player One from current postion 68 rolled dice and Output is:2
Player One got ladder

Player Two from current postion 87 rolled dice and Output is:4

Player One from current postion 89 rolled dice and Output is:3
Player One got snake bite

Player Two from current postion 91 rolled dice and Output is:3

Player One from current postion 35 rolled dice and Output is:4

Player Two from current postion 94 rolled dice and Output is:1

Player One from current postion 39 rolled dice and Output is:1

Player Two from current postion 95 rolled dice and Output is:5

Player One from current postion 40 rolled dice and Output is:5

Player Two from current postion 100 rolled dice and Output is:6

Player One from current postion 45 rolled dice and Output is:6

Player Two from current postion 106 rolled dice and Output is:4

Player One from current postion 51 rolled dice and Output is:3

Player Two from current postion 110 rolled dice and Output is:2

Player One from current postion 54 rolled dice and Output is:2

Player Two from current postion 112 rolled dice and Output is:2

Player One from current postion 56 rolled dice and Output is:4

Player Two from current postion 114 rolled dice and Output is:6
!!! Player Two won !!!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages