PDA

View Full Version : Quickstart Crap Games Contest



Oldbitcollector (Jeff)
10-21-2011, 05:59 PM
8 COGS, 8 LEDS, 8 TOUCH BUTTONS, AND 8 GAMES!

Quickstart Crap Games Contest?

Reflex
By: Oldbitcollector
Instructions: Press any button to stop the moving LED. Try to stop it on your button.
http://forums.parallax.com/attachment.php?attachmentid=86190&d=1319219893

DIY POV
By: WBA Consulting
Move the board and make it spell out "DIY".
http://forums.parallax.com/attachment.php?attachmentid=86203&d=1319237337

ConnectFour -:- Second place WINNER
By: Ariba
You and the Quickstart alternately turn on a LED, the one that first has 4 LEDs in a row wins.
http://forums.parallax.com/attachment.php?attachmentid=86227&d=1319311456

Touch Buttons LED Demo
By: Ray0665
6-in-1 Demo
http://forums.parallax.com/attachment.php?attachmentid=86214&d=1319295570

Snake -:- 1st place WINNER!
By: MagIO2
Load program and start Parallax Serial Terminal to play game.
http://forums.parallax.com/attachment.php?attachmentid=86258&d=1319402359

Match It
By: HShanko
Instructions:
1. The eight LEDs blink twice then stay ON after initialization.
2. Then touch a pad to set Pattern display time; pad 8 for longest, pad 1 for shortest.
3. Then, when a Pattern is displayed, try to touch and hold the corresponding pad(s) before timeout.
Hold untii pattern turns OFF. Pattern is displayed about 0.1 to 1 second
4. When touched pads matches pattern, the Score is increased by one. If a pattern isn't matched, a
time-out (Delay) occurs and #tries counter is decremented.
5. Game is over when #Tries is zero; Score is then displayed. If Score is zero, indication is by
sweeping a single LED to the left end. Touch any pad to Play again.
http://forums.parallax.com/attachment.php?attachmentid=86362&d=1319668292

Simon
By: Ariba
Simon Rules:
Additional: Connect a speaker or earphone at pin15 (thru a 100..220R resistor or 1..10uF capacitor).
http://forums.parallax.com/attachment.php?attachmentid=86385&d=1319783136

Cogs Of War
By: Tubular
(A variation of tug of war, for two players). One player madly taps the P7 button, the other taps P0.
http://forums.parallax.com/attachment.php?attachmentid=86413&d=1319848904

XorIQ
By: MagIO2
This game I called XorIQ. The goal is pretty easy: You have 30 tries to switch on all LEDs.
First the start-pattern is shown, then it loops over the xor-patterns and show em shortly. This can be switched off by a constant to give no glue at all. Then it's your turn! Push the buttons and the bitpattern will change. If all LEDs are on you won!
http://forums.parallax.com/attachment.php?attachmentid=87188&d=1322254875

Read into the thread for full details and revisions on each of these games!

mindrobots
10-21-2011, 06:46 PM
What a fun diversion! (not that I'll finish anything but still a fun diversion!)

Can we add a piezio speaker for obnoxious sound effects??

Oldbitcollector (Jeff)
10-21-2011, 06:48 PM
What a fun diversion! (not that I'll finish anything but still a fun diversion!)

Can we add a piezio speaker for obnoxious sound effects??

Sure! Keep it simple.. :) Everyone should be able to participate. Reflex only took a few minutes. :)

OBC

jazzed
10-21-2011, 06:51 PM
Nice project :)

Cluso99
10-21-2011, 08:18 PM
OBC: What a great idea!

Of course I am tied up with all my other prop projects.

Phil Pilgrim (PhiPi)
10-21-2011, 08:30 PM
This is an awesome idea, OBC! The winning entry could, perhaps, be selected as a self-running point-of-sale demo for those RadioShack stores that carry the QuickStart.

-Phil

WBA Consulting
10-21-2011, 10:49 PM
Well, I cheated. I adapted Beau's POV LED program for the demoboard and made it spell out "DIY". Not really a game, but a super easy demo for newbies to play with if they pick up a Quickstart board. (I wish I had my Mastermind port completed)

HShanko
10-21-2011, 11:27 PM
OBC,

What is a 'crap game'? Like your example, just something simple? I've not played much of any games

And how many parts can be added? Makes it difficult if I use something others can't find.

I bot the QS just for the heck of it; small, simple, has a keypad, some LEDs, USB powered, header to expand to the moon, or beyond. I used mine to bring up an old All Electronics LCD, a 24 x 1 char. display. Used it to display, 16 char at a time, of the LCD ROM display characcters, followed by the start/end characteer value. Yeah, I know the data sheet shows them, but wanted some programming time too. Used keypads 1 and 8 for forward/backward through the character set. Added Rayman's LED sequencer. That leaves at least 5 other keypads to select stuff.

Strange effect with it hooked to my iMac; when power is OFF, that is Standby, there must still be some residual power, as the LEDs light up slightly in the dark. Not evenly, so it must be near the 'knee' of the LED diode. Haven't yet measured that; "Hey, you over there, get your DVM and measure this?"

Good idea OBC. We can have our fun, and Parallax sell more QS boards.

Oldbitcollector (Jeff)
10-22-2011, 02:18 AM
Crap Game Compos (http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=crap+game+compo) aren't really a new idea.

The idea behind a "crap" game is one that is simple and just uses the functionality of the Quickstart board itself without adding a video or audio head. I know this crowd could easily come up with at least a half-a-dozen moderately interesting "crap" games.

Examples are games like Reflex, Simon, and Football. Surely there are a few other old timers here who remember LED (pre-LED) based pocket games. :) :)

Edit
@WBA: Exactly the kind of idea I had in mind! Nice!

OBC

Ariba
10-22-2011, 02:21 AM
I have made a few QuickStart Demos.
Here is my contribution to this contest, a simple version of ConnectFour ("Vier gewinnt" in german).

You and the Quickstart alternately turn on a LED, the one that first has 4 LEDs in a row wins.
You always begin, the Quickstart uses a mix of intelligence and randomness.

Andy

Edit: I have made an improved version, which lights the 4 LEDs in a win situation, and the code is also easier to understand.

Oldbitcollector (Jeff)
10-22-2011, 02:29 AM
@Ariba: Right on the money! Awesome entry!

OBC

bsnut
10-22-2011, 07:59 AM
OBC, I agree.

@Ariba: Right on the money! Awesome entry!

OBC
This is a cool idea that you came up with, were it tests someone coding skills.

Ray0665
10-22-2011, 03:01 PM
While not strictly a game, I combined the original button follow demo, Beau Schwabs demo, and my Led Sequencer plus a few others, 6 in all, into one package and added an OS (of sorts) to launch the programs using combinations of buttons. Enjoy

Oldbitcollector (Jeff)
10-22-2011, 04:17 PM
@Ray,

You read my mind. That's what I had in mind at the end of this contest. You suppose we can get a couple more in there?

OBC

Ariba
10-22-2011, 07:27 PM
@Ariba: Right on the money! Awesome entry!

OBC

Thank you Jeff

I have added a second version to my previous post, which works a bit better.

HShanko
10-22-2011, 08:11 PM
OBC, you wrote

For the next week, post your Quickstart Crap Game to this thread! I'll start!


Just one week? Cut-off date? I'm working on one but it may take longer than a week.

Oldbitcollector (Jeff)
10-22-2011, 08:42 PM
You know we'll ALWAYS accept new stuff for our Propellers, but this is a (pardon the pun) a "quick" contest for fame and glory. :)

Voting opens next week! :)

OBC

Ray0665
10-22-2011, 10:10 PM
Well we have lots of buttons and fingers the only restriction to more routines is memory.
As an aside I think something like this would be an ldeal in-store display / demo.
To be really effective a short description is really required. (perhaps part of the display)

The problem I see with all these demos is that unless there is an explanation of the architecture the mono-cog guys will look at it and say - I can do that and walk away.

We need a killer app that is clearly multi-cog.

Oldbitcollector (Jeff)
10-23-2011, 12:48 AM
While I'd hate to see all the games go this direction.... You guys are forgetting PST.. :)

OBC

MagIO2
10-23-2011, 08:39 PM
Liked the idea and took a few hours to code this!
As I don't have a quickstart board myself I used a gadgetgangster board and PST.
Quick and easy .... and much room for improvements ... levels ... difficulty ... obstacles and stuff like that can be added later by the guys who learn programming

Enjoy ;o)

PS: Oh ... after posting I remembered the keyboard differencies ... so, here is lesson 1: Change y into z if you have an english keyboard layout ;oP
PPS: I can think of at least 3 minor bugs ... lesson 2: find the bugs and fix the code


Concrete instructions on how to run snake, as requested by OBC in post #36:
================================================== =========
To run snake you need PST, the "Propeller Serial Terminal". You can find it on the propeller download page.
Other terminals propably won't work (maybe except the terminal included in BST) because PST has some special bytes for setting the position of the output ""cursor" which is needed by snake.

Then you simply load the program into RAM. The program will wait for you to switch to PST and enable the serial interface again by periodically sending a string.

After that you can simply follow the instructions the game gives you.

About the bugs: One bug you'll face more often the longer your snake is. (Tip: even if the food tells you, you should never cross the snake ;o)
The other bug will appear if you managed to have a snake with 500 pieces. Don't know what happens then. At least in memory the snake will bite itself into it's tail ;o).

Oldbitcollector (Jeff)
10-23-2011, 10:50 PM
Nice! Changed the keyboard layout and it worked great here!

OBC

trodoss
10-24-2011, 02:34 AM
While I'd hate to see all the games go this direction.... You guys are forgetting PST.. :)

OBC
...So, that means that using a "serial connection" isn't out of the question then?

Oldbitcollector (Jeff)
10-24-2011, 03:00 AM
The game should have as few outside requirements as possible. Playable by simply adding a 9v battery is ideal, but PST isn't out of the question.


...So, that means that using a "serial connection" isn't out of the question then?

HShanko
10-24-2011, 10:48 PM
Here's my submission to crap games. Not much of a game, but.....

Instructions are at end of source, but will provide it here:

MATCH IT - instructions:
1. The eight LEDs blink twice then stay ON after initialization.
2. Then touch a pad to set Pattern display time; pad 8 for longest, pad 1 for shortest.
3. Then, when a Pattern is displayed, try to touch and hold the corresponding pad(s) before timeout.
Hold untii pattern turns OFF. Pattern is displayed about 0.1 to 1 second
4. When touched pads matches pattern, the Score is increased by one. If a pattern isn't matched, a
time-out (Delay) occurs and #tries counter is decremented.
5. Game is over when #Tries is zero; Score is then displayed. If Score is zero, indication is by
sweeping a single LED to the left end. Touch any pad to Play again.


Since a 'drop dead' date wasn't mentioned, I figured this was 'crappy' enough to qualify. Could use a bit more tweaking. I find it difficult to get much of a score. Maybe it is just my fat 'fumble-fingers' on the touch-pads which should have been further apart. But I wouldn't want that either.


86316

Oldbitcollector (Jeff)
10-25-2011, 01:18 AM
Looks interesting but missing "Conduit.spin" & "QuickSample.spin" Could you add the files?

OBC

HShanko
10-25-2011, 02:49 AM
OBC,

Apologies. In haste, I forgot to turn off VP lines. I replaced my earlier file with the archived version including VP files.

HShanko
10-25-2011, 09:49 PM
I uploaded a slightly improved version. Improvement is in the ending. A single LED sweeps to the left (not possible score of 128) for ZERO score and sweeps to the right for earned score.

The score blinks until another touch to play the next game.

I still find it difficult to get a very high score (in binary).

HShanko
10-26-2011, 05:54 PM
Hi, everyone dealing with the 'crap games'.

I would appreciate anyone trying my MatchIt game to feed back to me any complaints, improvements, etc. that you may have found or done.

Working with only eight each capacitive touchpads and LEDs there is a bit of limitation on what can be done/displayed.

Thank you for any feedback.

Oldbitcollector (Jeff)
10-26-2011, 08:15 PM
Nice!!

Two more days left! Who's got the "simon" game? :)

OBC

HShanko
10-26-2011, 10:34 PM
"He's back!" One more update on the MatchIt game.

I finally got the routine working that requires holding two or more pads down for a period, rather than the Prop taking off on the first touch of a pad. And commented out ViewPort use. I needed it during debugging. Now is easier to get a score of 5 or more.

Now only if I only had thinner finger tips and could hit all the (pattern) matching keys. And look up what 'Simon' game is.

I'm going to attach the latest version right here. 86362

Ariba
10-28-2011, 06:28 AM
Nice!!

Two more days left! Who's got the "simon" game? :)

OBC
If nobody else post one ... I got it.
And even with sound, if you connect a speaker or earphone at pin15 (thru a 100..220R resistor or 1..10uF capacitor).
It's easier to remember the sequence with sound, but it works also without.

Andy

Oldbitcollector (Jeff)
10-28-2011, 05:55 PM
Awesome! I knew someone had it! :)

I'll open a voting thread this weekend and we'll vote a winner! :)

OBC

Tubular
10-29-2011, 12:41 AM
"COG of WAR"

(a variation of tug of war, for two players). One player madly taps the P7 button, the other taps P0.

Probably good for morse code practice!

Oldbitcollector (Jeff)
11-07-2011, 03:14 PM
Top thread has been updated to reflex a quick list of games and instructions!

Thanks for participating! SNAKE was our winner!

OBC

HShanko
11-07-2011, 04:43 PM
Thanks OBC for the summary/tally.

Congratulations, MagIO2 for you winning Snake.

Don't know about others, but shouldn't there have been more entries. (I wonder how many forum members have a QuickStart board)

It would be nice if Parallax Semiconductor puts out a QS for the Prop 2. But, like have the touchpads a bit better spaced. Hint, Hint.

Oldbitcollector (Jeff)
11-07-2011, 05:14 PM
I would like to invite everyone who participated to spruce up their entry message with detailed instructions where valid, etc.

It would be ideal to create a perfect Quickstart samples thread from this contest.

Ariba
11-07-2011, 05:25 PM
Second place, not bad for such a little program like Connect4 :smile:

Today I have tried out the PropGCC Compiler. After running some demos, I' decided to make my own first C code for the Propeller.
And here it is: The Connect4 Game in C (for GCC).
Add the whole folder to the demos directory, then you can compile it like the other demos.

Andy

Tubular
11-07-2011, 06:58 PM
Congratulations MagIO2!

Ariba converting such simple programs to GCC sounds like a great way to try GCC, I must follow your lead and do the same...

rogersyd
11-23-2011, 03:38 PM
Hi MagIO2,

In the early nineties my mom brought home an early IBM compatible laptop which had a version of this game. It was the first game I ever hacked (with the help from my older brother who actually knew what he was doing.) The snake concept is a wonderful platform for learning basic programming concepts. I enjoyed your version of Snake so much I had to hack it out of pure nostalgia. This version I call Cold Hearted Snake. It still has some bugs, but most of the features I had in mind are working correctly. It no longer fits the Crap Game specs as defined for this contest, but I thought I would share with you all anyway, just for ha-has.
-rogersyd

87097

MagIO2
11-24-2011, 05:34 AM
Hi rogersyd,

nice mod ... sadly I don't have a propeller setup with sound. Strange to me is that you can do a 180 degree turn and without biting yourself.

Nostalgia was the reason for me to participate in the contest. In the first place I wanted to code another game. Don't remember if this had a name - it was about a submarine going down inside of a underwater canyon. Walls going left and right randomly and the way down got smaller ....
But in PST the auto-scrolling of the canyon did not work properly in combination with the positioning of the cursor for printing score and submarine.

Maybe it had to do with the fact that you have to send positioning string with term.str because 3 separate term.tx don't work. But I figured it out after switching to code Snake.

Anyway ... I started coding this little game in an age of 13 on a Commodore VC20 - there the scrolling worked ;o)
I saw snake later on a C64 called Centipede and I loved that game. Still have that SID sound in my head ...

Thanks for sharing your version!
MagIO2

MagIO2
11-24-2011, 01:01 PM
Cool ... got my QS today .... I'm off now ... have to test all the other crap-games ;o)

Good to have this thread!

softcon
11-24-2011, 02:32 PM
I'm thinking I'll attempt a multiplayer simon. 2 cogs, one using buttons 0-3, second cog using buttons 4-7, tied together, or not, still allows multiplayer, and might show off the propeller a bit better than a single simon player version. (having not programmed in propeller yet, this will be fun and interesting)

Oldbitcollector (Jeff)
11-24-2011, 06:06 PM
@softcon

Have you had a chance to plug three resistors (1.1k,560ohm,270ohm) on 12,13,14 and tried out Propeller Video (Graphics Demo.Spin) yet?

If not, it'll blow you away.. :)

OBC

MagIO2
11-25-2011, 08:01 PM
Ok .. here is another one ... coded in a few hours ...

I know that the contest is over, but as I said lately I got my QS board yesterday and I simply had to do this!

This game I called XorIQ. The goal is pretty easy: You have 30 tries to switch on all LEDs.
First the start-pattern is shown, then it loops over the xor-patterns and show em shortly. This can be switched off by a constant to give no glue at all.
Then it's your turn! Push the buttons and the bitpattern will change.
If all LEDs are on you won!

The game also gives a lot room for tweaks/improvements ... try it with 3 bits per button ... or a variable amount of bits .... or even different levels

Enjoy!

================================================== ==================
PS: Today (one day after posting the above) I switched on my QS and the game did not behave very well. A day before everything worked like a charm, otherwise I would not have posted it here. So, what happened? No code change that's for sure!
I found another thread which talks about the pads being very sensitive for huminity ... so, if you have problems with the game - this is the reason. I have to find a better driver for the pads I guess....

Oldbitcollector (Jeff)
11-25-2011, 08:09 PM
Nice! Added to the top thread..

BTW, these games are now linked from the Quickstart page (on Parallax) itself.

OBC