
-----------------------------------
Mr. T
Sun Nov 06, 2005 7:53 pm

Grid Snake
-----------------------------------
Last year, for my grade 10 FP, I made Uncle Worm (basically Snake with a few modifications) but I had no time to implement a grid system, as suggested by others.  Anyway, I decided to try out the grid (shown to me by jamonathin), and turn it into a working snake game.  So here (attached file) is snake at its most basic level.  I will add updates when I find the time.
Note: In my version, you are allowed to go through walls without losing a life. :wink:

-----------------------------------
[Gandalf]
Sun Nov 06, 2005 8:11 pm


-----------------------------------
Not bad, you could try to improve response/reaction time though.  Not much to say...  An alright beginning, you don't really need to see the grid though...

-----------------------------------
Mr. T
Sun Nov 06, 2005 8:13 pm

Alex's Opinion
-----------------------------------
1. I used the grid just to show (visually) that all the elements of the game correspond to the grid.
2. Ya, I noticed that it is difficult to make sharp turns.  Why could that be?
3. I tried using whatdotcolour to prevent food being drawn on the snake's body, but to no avail.  Why could that be?

-----------------------------------
MysticVegeta
Mon Nov 07, 2005 8:08 pm


-----------------------------------
I never die.

-----------------------------------
Cervantes
Mon Nov 07, 2005 8:27 pm

Re: Alex's Opinion
-----------------------------------
1. I used the grid just to show (visually) that all the elements of the game correspond to the grid.
2. Ya, I noticed that it is difficult to make sharp turns.  Why could that be?
3. I tried using whatdotcolour to prevent food being drawn on the snake's body, but to no avail.  Why could that be?
2. Probably due to keys being pressed when the delay is going on.  Check out how I solved this problem in Disclaimer: I have not run the program.

-----------------------------------
Mr. T
Mon Nov 07, 2005 9:16 pm

Alex's Opinion
-----------------------------------
I never die.
 :?

-----------------------------------
[Gandalf]
Mon Nov 07, 2005 9:56 pm

Re: Alex's Opinion
-----------------------------------
I never die.
 :?
:lol:
I can't remember, but it is either impossible or very hard to lose in your game...

-----------------------------------
Mr. T
Mon Nov 07, 2005 10:23 pm

Alex's Opinion
-----------------------------------
Run into yourself, and your death shall be quick and painless.  :lol:

-----------------------------------
MysticVegeta
Mon Nov 07, 2005 11:45 pm


-----------------------------------
here is how I calculated the probabilty of running into your self:

Some factors are:

1) Immediate turns

I think thats the only thing that can cause running into oneself
lets further view that shall we?

When do you take immediate turns? 

1) food spawns really close to the previous one

probabilty of that is 1/10 = 10 percent

also, when you take immediate turn because the food is spawned near it, what are the probabilty that when you take a double turn you hit yourself which means that your length is great. Great length probabilty is indeterminate because the length keeps on increasing so i would say the probability of you hitting yourself is somewhere around 5-10%

Which means winnning chances are 90-95%. Sorry if this was offensive to teh creator. did i win?

-----------------------------------
Mr. T
Tue Nov 08, 2005 8:29 pm

Alex's Opinion
-----------------------------------
There is no 'winning,' only losing.  As your snake grows larger, it becomes easier to get entangled in yourself and die.

-----------------------------------
MysticVegeta
Tue Nov 08, 2005 9:58 pm


-----------------------------------
I assume for the player that by that time i.e reaching a large large size, the player will be bored to death because he hadn't died once. So will automatically quit the program, thats a win for the user/game.

-----------------------------------
Mr. T
Tue Nov 08, 2005 11:09 pm

Alex's Opinion
-----------------------------------
Getting bored of a classic game like snake is communism, Stalin.

-----------------------------------
MysticVegeta
Wed Nov 09, 2005 2:47 pm


-----------------------------------
Each game has a critical level where the person gets bored, no matter what game it is, XBox, ps2, pc, each game does. No offense but this game shows a little more symptons

-----------------------------------
Mr. T
Wed Nov 09, 2005 4:00 pm

Alex's Opinion
-----------------------------------
Maybe if you have the attention span of a dead animal.

-----------------------------------
Cervantes
Wed Nov 09, 2005 4:31 pm


-----------------------------------
Can we cut back on the harshness, Pwned?  MysticVegeta is only offering constructive criticism.

On another note:

There is no 'winning,' only losing.

What if you fill the map up with yourself?  You'd die the next step, but I think that should constitute a win. :)

-----------------------------------
MysticVegeta
Wed Nov 09, 2005 7:01 pm

Re: Alex's Opinion
-----------------------------------
Maybe if you have the attention span of a dead animal.hey! I was using polite words!! uh yea, i agree with cervantes, peace  :D

-----------------------------------
Mr. T
Thu Nov 10, 2005 11:36 pm

Re: Alex's Opinion
-----------------------------------
Maybe if you have the attention span of a dead animal.
Why does no one like my ingenious analogies?  :cry:

-----------------------------------
MysticVegeta
Fri Nov 11, 2005 11:47 am


-----------------------------------
hey I liked it except I didnt get it. By the ways thread getting out of topic, someone to lock up?

-----------------------------------
Mr. T
Fri Nov 11, 2005 12:42 pm

Alex's Opinion
-----------------------------------
NO!!!
I may have more relevant programming questions in the future relating to this topic.

-----------------------------------
Cervantes
Fri Nov 11, 2005 4:39 pm

Re: Alex's Opinion
-----------------------------------
NO!!!
I may have more relevant programming questions in the future relating to this topic.

Fine, but its locked in the meantime.
Pwned, you need to spam less. :|
