Calculator Community > Community Contests
[ENDED] (Results Soon) Code Golf - The Reboot #2
pimathbrainiac:
Challenge #2: Motion Commotion
The challenge: Make a program that moves a pixel around the screen.
Inputs:
You may either use the arrow keys or wasd for input.
Outputs:
Each time a key is pressed, a pixel moves around the screen as follows:
up/w: up 1 pixel
down/s: down 1 pixel
left/a: left 1 pixel
right/d: right 1 pixel
If a key is held, it doesn't matter. 1 pixel of movement per press.
Scoring:
All non-calculator programs will be scored through this counter: http://juju2143.ca/golf/
Assembly programs will be scored on binary size (excluding the header), and Basic/Axe programs will be scored bn on-calc source size (once again, excluding the header).
Good luck, and may this contest move you!
Rankings
1) lirtosiast - 27 Bytes (TI-Basic)
2) ben_g - 47 Bytes (TI-Basic)
3) Siapran - 139 Bytes (PICO-8)
4) Juju - 144 Bytes (PICO-8)
5) LDStudios - 153 Bytes (PICO-8)
6) Scipi - 154 Bytes (GBA C)
7) alberhrocks - 253 Bytes (Pygame)
8 ) alberthrocks - 397 Bytes (SDL C)
Language Ranking
1) TI-Basic (27 Bytes)
2) PICO-8 (139 Bytes)
3) GBA C (154 Bytes)
4) Pygame (253 Bytes)
5) SDL C (397 Bytes)
Juju:
Sounds fun. What do you mean by pixel, at least on PC? An actual pixel? Or it can be a *?
pimathbrainiac:
--- Quote from: Juju on June 08, 2015, 05:27:11 pm ---Sounds fun. What do you mean by pixel, at least on PC? An actual pixel? Or it can be a *?
--- End quote ---
An actual pixel, preferably black.
Juju:
--- Quote from: pimathbrainiac on June 08, 2015, 05:28:30 pm ---
--- Quote from: Juju on June 08, 2015, 05:27:11 pm ---Sounds fun. What do you mean by pixel, at least on PC? An actual pixel? Or it can be a *?
--- End quote ---
An actual pixel, preferably black.
--- End quote ---
In a window or on the whole screen? Anyway, sounds like it requires a few graphic libraries.
pimathbrainiac:
--- Quote from: Juju on June 08, 2015, 05:32:17 pm ---
--- Quote from: pimathbrainiac on June 08, 2015, 05:28:30 pm ---
--- Quote from: Juju on June 08, 2015, 05:27:11 pm ---Sounds fun. What do you mean by pixel, at least on PC? An actual pixel? Or it can be a *?
--- End quote ---
An actual pixel, preferably black.
--- End quote ---
In a window or on the whole screen? Anyway, sounds like it requires a few graphic libraries.
--- End quote ---
Either works, and yeah, that's the point. This one gives advantages to calcs.
Navigation
[0] Message Index
[#] Next page
Go to full version