Rank | User | Size | Board Size | Date | Code |
1 | Adriweb | 548 | 23*23 | 8/16/2014 4:57:21 PM | Spoiler For Spoiler: |
Rank | User | Size | Board Size | Date | Code |
1 | JWinslow23 | 301 | 21*21 | 8/11/2014 9:55:09 AM | Spoiler For Spoiler: |
Rank | User | Size | Board Size | Date | Code |
1 | JWinslow23 | 336 | 165*165 | 8/12/2014 4:02:45 PM | Spoiler For Spoiler: |
Rank | User | Size | Board Size | Date | Code |
1 | ben_g | 1610 | (screen_height-20)*(screen_height-20) | 8/12/2014 1:16:46 PM | Spoiler For Spoiler: |
Rank | User | Size | Board Size | Date | Code |
1 | 3298 | 278 | 64*64 | 8/17/2014 6:59:16 PM | Spoiler For Spoiler: |
Rank | User | Size | Board Size | Date | Code |
1 | Juju | 611 | (height-1)*(height-1) | 8/18/2014 11:40:15 AM | Spoiler For Spoiler: |
Rank | Lang | User | Size | Board Size | Date |
1 | SysRPL | 3298 | 278 | 64*64 | 8/17/2014 6:59:16 PM |
2 | TI-83+ BASIC | JWinslow23 | 301 | 21*21 | 8/11/2014 9:55:09 AM |
3 | TI-84+CSE BASIC | JWinslow23 | 305 | 165*165 | 8/12/2014 4:02:45 PM |
4 | Nspire Lua | Adriweb | 548 | 23*23 | 8/16/2014 4:57:21 PM |
5 | Ruby | Juju | 611 | (height-1)*(height-1) | 8/18/2014 11:40:15 AM |
6 | Java | ben_g | 1610 | (screen_height-20)*(screen_height-20) | 8/12/2014 1:16:46 PM |
Just so you know, someone made a 256-bytes Snake on Cemetech using z80 ASM, and it does all you said (although it uses a 16*16 grid).Woah O.O that's awesome.
Just so you know, someone made a 256-bytes Snake on Cemetech using z80 ASM, and it does all you said (although it uses a 16*16 grid).Notify that someone! He can change it, and submit it!
Coded golf 5? Does that mean 4 is over already?It doesn't matter the size of the window as long as the play area is 8 snake pieces tall and 16 snake pieces wide. And yes, you can use ASCII graphics.
/me forgot to submit his entry again :S
Anyway, I'll try this one. Can we use simple command-line text graphics and rely on the user to set the window to the correct size?
Well, I mainly meant that if you output text in a command line larger than the area you use, it may show garbage on the edges, like the remainder of previous frames.I think you can assume that the window is at least 8*16, but if you want to change the window size to a certain number, you can.
What are the rules on how input must work? All the languages I've been using so far don't support raw input without libraries, and it would be faster to do it via line based input, but also much worse.I will install perl or python, whichever I get submissions for. I will, however, have to see an animated screenie of any entries of Nspire Lua and any other language I can't test.
It will also be impossible for you to test without installing perl/python and whatever library I use.
I will, however, have to see an animated screenie of any entries of Nspire Lua and any other language I can't test.My code works on Jim's js Nspire-Lua tester ^^
That's really not simple at all for any terminal-based language. Input for those languages is not handled in real time. Imagine making a basic snake with only input, not getkey, and you'll be pretty much spot on.Is there a command like CHOICE?
(http://img.ourl.ca/1407806056.gif)I believe I had something like that, except 100 bytes smaller.
It's slow and huge, but it's a start.
Anyway, submitted....then where's the PM? :P
It was the pastebin on the IRC PM :POh, that's why you sent it to me there. :-\ Well, I mean forum PM from now on. Just like last contest. :P
But anyway, I forum-PM'd you ^^
it is. 9x9.Should've responded to you. :)
Got the PM, btw ?
...It's not clearly mentioned in the rules, but shouldn't the food always spawn in an empty space as well (not on the snake)?
You must make a game of Snake (or Nibbles, if you know it as that). It must follow all of these guidelines:[li]The food must spawn randomly, Adriweb :P [/li]
- It must be played on an square "grid" (each space being the width of one snake segment) as large as possible
- The graphics for the food and the snake segments must each be different
- The border must be clearly defined, and have different graphics from the food or the snake
[li]The snake is moved with interactive input (such as a getKey-like command) if possible; if not supported, you may enter a direction each frame[/li]
[li]Your snake must wrap around the sides of the board[/li]
[li]At game's end, the program must display however many pieces of food were eaten in some way[/li]
[li]Your game, above all, must be playable :P [/li]
[/list]
...
......
You must make a game of Snake (or Nibbles, if you know it as that). It must follow all of these guidelines:
- It must be played on an square "grid" (each space being the width of one snake segment) as large as possible
- The graphics for the food and the snake segments must each be different
- The border must be clearly defined, and have different graphics from the food or the snake
- The food must spawn on a random EMPTY square, Adriweb :P
- The snake is moved with interactive input (such as a getKey-like command) if possible; if not supported, you may enter a direction each frame
- Your snake must wrap around the sides of the board
- At game's end, the program must display however many pieces of food were eaten in some way
- Your game, above all, must be playable :P
It's not clearly mentioned in the rules, but shouldn't the food always spawn in an empty space as well (not on the snake)?
...
You must make a game of Snake (or Nibbles, if you know it as that). It must follow all of these guidelines:...
- It must be played on an square "grid" (each space being the width of one snake segment) as large as possible
- ...
So we have to pre-plan all possible games for the contest :PYeah but if JWinslow23 decides to do like 4 game-related Code Golf contests within a single month span, then that's a massive amount of stuff to plan and it would be easy to get lost in it and mix rules up.
Wow, I got the shortest entry this time. :angel: Apparently this nut was too tough for Golfscript and CJam. Though I have to admit that the concerns I expressed above still apply to the version I submitted (it is in fact the same version I had when I wrote my previous post). I was working on a grayscale version, but that one is still not finished - and likely will never be because this round is over. Probably it would have ended up bigger because it needs to contain the grayscale system - there is not much existing system code I could recycle for that.
I'll NEVER do a game again, don't worry. :PSo we have to pre-plan all possible games for the contest :PYeah but if JWinslow23 decides to do like 4 game-related Code Golf contests within a single month span, then that's a massive amount of stuff to plan and it would be easy to get lost in it and mix rules up.
Which calculator is your SysRPL entry compatible with by the way?I write it on my 50G of course, and due to the negligible differences between 49G+ and 50G (the 50G is mostly a hardware quality upgrade, and returned an IO port the 49G+ was missing ... I believe it was the serial one) it should always run on the 49G+ as well.