Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - JWinslow23

Pages: 1 ... 12 13 [14] 15 16 ... 40
196
TI Z80 / Re: Snake - ClrDraw
« on: August 13, 2014, 12:45:43 pm »
Code Golf Contest #5, anyone? :P

197
Community Contests / Re: Code Golf Contest #4
« on: August 12, 2014, 06:14:05 pm »
I can't think of a language that requires Unicode to use a feature.
HP PPL? :trollface:
Not really. You can use ASCII substitutions. In any case, you aren't saving bytes by using multi-byte Unicode characters instead of normal multi-byte character sequences.
Byte, char, same thing when multi-byte-characters are not present in most of the computer lang entries.

198
Community Contests / Re: Code Golf Contest #5
« on: August 12, 2014, 05:21:51 pm »
I actually DID do 1pxl for TI-84+CSE BASIC. Hey, I DID say "largest possible size" (165*165 pxl)! :P

199
Community Contests / Re: Code Golf Contest #5
« on: August 12, 2014, 05:13:58 pm »
I would have a 63*63 board for TI-83+ BASIC, but that would break the rule of "border, food, and snake graphics must be different". And I have a ~280 byte one in TI-83+ BASIC, but it breaks the rule of "largest possible board". Oh, the things I do to myself...

200
Community Contests / Re: Code Golf Contest #5
« on: August 12, 2014, 01:31:10 pm »
...
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)?

What unclear rule? :P

Also, this:

201
Community Contests / Re: Code Golf Contest #5
« on: August 12, 2014, 11:02:33 am »
it is. 9x9.

Got the PM, btw ?
Should've responded to you. :)

Oh, and I have 2 entries of my own. They are board size 21*21 and 165*165, respectively. They are the largest square boards for their platforms that fit the rules.

202
Community Contests / Re: Code Golf Contest #5
« on: August 12, 2014, 10:31:06 am »
It was the pastebin on the IRC PM :P

But anyway, I forum-PM'd you ^^
Oh, that's why you sent it to me there. :-\ Well, I mean forum PM from now on. Just like last contest. :P

Also, check that your board is square.

203
Community Contests / Re: Code Golf Contest #5
« on: August 12, 2014, 10:25:26 am »
Anyway, submitted.
...then where's the PM? :P

204
Community Contests / Re: Code Golf Contest #5
« on: August 11, 2014, 07:17:42 pm »

It's slow and huge, but it's a start.
I believe I had something like that, except 100 bytes smaller.

205
Community Contests / Re: Code Golf Contest #5
« on: August 11, 2014, 06:32:45 pm »
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://ss64.com/nt/choice.html

If there is one of that kind of command, it should be simple enough.

206
Community Contests / Re: Code Golf Contest #4
« on: August 11, 2014, 06:32:39 pm »
You should move the deadline to 11:59 PM instead of 12 AM, because from experience when I organized Omnimaga contests, even experienced programmers and TI community veterans would mix up 12 AM with 12 PM and it was even more confusing for people living in different timezones.
It's 1:00 AM EST. It's a simple lookup online.

207
Community Contests / Re: Code Golf Contest #5
« on: August 11, 2014, 06:18:07 pm »
That's great! :D

208
Community Contests / Re: Code Golf Contest #5
« on: August 11, 2014, 06:14:22 pm »
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.

It will also be impossible for you to test without installing perl/python and whatever library I use.
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.
If you press a certain key, the snake goes a certain direction. If no key is pressed, the snake keeps going in its current direction. That's how input works. Plain and simple. Like getKey for TI-BASIC, or some complicated sequence with CHOICE for Batch.
Also, yes, Adriweb, that is how it works.

209
Community Contests / Re: Code Golf Contest #5
« on: August 11, 2014, 04:02:06 pm »
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.

210
Community Contests / Re: Code Golf Contest #5
« on: August 11, 2014, 03:46:53 pm »
Coded golf 5? Does that mean 4 is over already?
* Ben_g0 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?
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.

Pages: 1 ... 12 13 [14] 15 16 ... 40