Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Making an LED Turing Game?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
vdemons




PostPosted: Sat May 07, 2011 3:50 pm   Post subject: Making an LED Turing Game?

Well my computer technology teacher want us to make us a computer game using Turing,
the tough part is that he wants us to make it manipulate LEDs through a parallel port.
He also want us to be ambitious with it but i am having trouble thinking of ideas that would be ambitious
but still doable for a novice such as myself. I have been thinking of making a Tic-Tac-Toe game where
if you click a box while being circle a red LED lights up on a grid attached to a bread board and the
same goes for X just with a green LED. However, i think it maybe too complicated, so do you guys
have any good projects ideas that are doable for someone like me, and if its not to much trouble how I
might start off with it.

P.S. Thank you in Advance Very Happy
Sponsor
Sponsor
Sponsor
sponsor
RandomLetters




PostPosted: Sat May 07, 2011 8:02 pm   Post subject: RE:Making an LED Turing Game?

There's one problem with tictactoe: the number of outputs you can easily use with a parallel cable easily (since you said you were a novice, probably not 18).

How about that memory game where you watch a pattern and then the player tries to repeat it from memory?

Or, the reversi-like game where there;s a pattern of black and white on a board, and you select one square and it flips it and the squares next to it in a cross, until you get all lights off.

Or, you could try global thermonuclear war.
Tony




PostPosted: Sat May 07, 2011 8:12 pm   Post subject: RE:Making an LED Turing Game?

There are 8 pins -- parallelput, meaning you can encode 2^8 == 256 states
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
RandomLetters




PostPosted: Sat May 07, 2011 8:20 pm   Post subject: RE:Making an LED Turing Game?

Or 8, independent, LEDs.
mirhagk




PostPosted: Sat May 07, 2011 10:20 pm   Post subject: RE:Making an LED Turing Game?

Well what you could do is use a flip flop to store whether a light is on or not, then use something (someone help with the the name of it) that transforms 4 inputs into 16 outputs so that for each unique input, a different output will turn on.
Tony




PostPosted: Sat May 07, 2011 11:26 pm   Post subject: RE:Making an LED Turing Game?

demultiplexer http://en.wikipedia.org/wiki/Multiplexer#Digital_demultiplexers
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
mirhagk




PostPosted: Sun May 08, 2011 1:57 pm   Post subject: RE:Making an LED Turing Game?

That's the word, thanks Tony. I remembered using it for my stop light problem (we had to control 2 stop lights, so 6 lights, and everyone was using 6 wires and I was like, um we only need 3 wires, so I started to design what in essence was a demultiplexer before my teacher showed me that he had one)
vdemons




PostPosted: Mon May 09, 2011 1:29 pm   Post subject: RE:Making an LED Turing Game?

thx really helped alot
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 8 Posts ]
Jump to:   


Style:  
Search: