Snakes and Ladders Game – CSCB58 Project

Snakes and Ladders Game – CSCB58 Project


Hello everyone, my name is Harshit, our cameraman
is Kshitij. We made this snakes and ladders game for our
B58 project Hey Raj come here check it out. Raj: dude the graphics look amazing, mind
explaining the controls to me? HP: Switch 0 is for turning on and turning
off the game, and key zero here is to roll the dice. Player one is shown on the top, player two
is on the bottom so the rules are easy, same as regular snakes
and ladders game. If you get a six, you get another chance. you want to start the game? Raj: yeah, sure. I will be player one. HP: so you roll the one, so this shows where
the position of player one is, and this shows where the position of player two is. It’s my turn, it shows here which player is
it. So you got a six, so it’s your chance again. Raj: oh, ok. Hey Jawad come check this game out. Jawad: Wow, it’s actually a very cool game,
I have a quick question, how do the players move? so the players are drawn here using
the x and y counters, its a 3*3 pixel box. So we are using a counter, once it reaches
x it increases the y counter by one, so it starts drawing another row, so it’s my turn
again. I roll six. so you can see, player two is at 23 and player
one is at 17. Raj: and how does the players know where to
land on? HP: so, if a player is at 18, then we have
a lookup table, which stores the x and y coordinates of every number. So if a player was at 18, it will get the
x and y coordinates of the 18 number. so it will draw the pixel there. you can see that there is a red light there,
so player 2 went down a snake, and player two is at ten, so its player’s one chance
now. Raj: what would happen if say, one of us won
the game? HP: so once it reaches 100, you won’t be able
to roll another dice, so, instead of zero, it will show which player won, and it will
stop you from rolling another dice. Jawad: another question, lets you are at like,
98 and then you got a six, would you win? what would happen? HP: that’s a good question by the way, if
you are at 98 and you get a six or a 4, let’s say you got a 4, so you will remain at the
98th position because you still did not reach a hundred. To reach hundred, you need to get a 2 from
98. Jawad: another question, if you were on a
snake, how do you know to go down, or stay? HP: we have a look up table for that as well. It stores the positions of the snakes and
ladders, so it will go and call the lookup table, and check if there was a snake and
that will bring it down, if there was a ladder, it will bring it up the ladder. Jawad: so there is two lookup tables? HP: yeah. Raj: let’s try to see if one of us can win. HP: so player two won, and we can see it shows
player 2 won, and we also have a reset feature where you can reset the game. so you can see everything reset, players came
to the start positions, and even while playing the game, if they want to reset the game,
they can simply reset the game and they will come back to the original positions. HP: you have anymore questions? Jawad: I think that’s fine, good job. Raj: it was a fun game , Harshit

Leave a Reply

Your email address will not be published. Required fields are marked *