Πέμπτη 24 Μαρτίου 2011

1v1 soccer


Here is the link of 1v1 soccer game.
An interesting game to play when you're bored. :P

It's a very simple game where you control a soccer player and your goal is to score. It's pretty fun because the size of the body the player is pretty small compairing to his head and the gravity is low. Have fun playing it. :)

Σάββατο 5 Μαρτίου 2011

Simon says game completed on logisim

This is the famous Simon says game. You can play it in low graphics here. It's a difficult memory game and interesting to all ages. In the beginning of the game a random button lights. You have to press that button. Then the game gives you - by lighting the buttons - the same sequence of buttons adding 1 random in the end. For example if it gives you yellow blue yellow red and you re-enter them correctly the next will be yellow blue yellow red AND 1 random button (yellow/blue/red/green).
I've made this game using logisim. I used only logic gates (and/or/not/xor) and some splitters, adders and d-flip-flops without editing the clock's path. I also used 4 buttons and some leds to make the game user friendly. The whole project took me nearly 2 days.

Παρασκευή 18 Φεβρουαρίου 2011

Towers of Hanoi on emu8086


The towers of Hanoi can be solved with recursive and no recursive algorithms. In the wiki page I provided you can see both of them. Still, I thought of another no recursive algorithm that solves the puzzle and programmed it on emu8086.






My algorithm still solves the puzzle in the minimum required moves. To use the algorithm you need to remember just one think, left or right (let's call it abc) and has one and only rule: Move the disk that can be moved and wasn't moved in the last round. The disk should be moved according to what abc says, if that's impossible move the disk to the other way. After the move chance the abc. The first value of abc must be left if you have odd number of disks or right if you don't.

I've also made an add-on in the program. I used Visual Basic to create a program that reads whatever the emu8086's program sends to some specific ports. This program just displays the current position and the number of moves made so far.