love it!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
There is an iteration (recursion) limiter so that if an 'infinite' recursion is possible (the stack of pending changes does not reduce to 0) it will simply halt.
That's why it's sometimes called Chain Reaction ... the rules means that it can tip from one state to another instantly if you set the board up right. The trick is to work out when and enable this for yourself and stop it for your opponent.
That's impossible, sadly ... one colour can eradicate another before all the tiles are full. Also, in a 'Chain reaction' it is possible for the changes to perpetuate infinitely. There is therefore a count to stop it after 200 changes.
I first played this as the game "Red Alert" on a BBC micro. You've beaten me to it in making a Scratch version, but I wouldn't have made such a great job as you have. Congratulations!
Download the 32 sprites and 99 scripts of "Atoms" and open it in Scratch
Project Notes
A version of Atoms (aka Chain Reaction) for Scratch.
Instructions:
Taking it in turns, blue starting, place an atom on a tile by clicking a tile with the mouse. You can only place an atom on an empty tile or a tile of your colour. Tiles can take a number of atoms before they 'go critical' and send the atoms to the neighbouring tile - one for the corner tiles, two for the edge tiles and three for other tiles. When a tile 'goes critical' it spills atoms to the neighbours, changing the colour of the other atoms in the neighbouring tiles to your colour. The aim of the game is to end up with all atoms on the tiles being your colour.
Background
I first played this on the Atari ST, from a cover disc for a magazine. The original was written in compiled GW Basic. A Java version has been written by Neil Fraser, and can be found at http://neil.fraser.name/software/chain
This is very much a version 0.1 attempt. It works well enough, but more sounds, better turn notification and better winner checking need to be added.
The 'recursion' is implemented using a list as a call stack, for those interested in the implementation method used.
Comments
You need to be logged in to post comments
Add a Comment
Say, this is pretty neat!
BLUE WINS!
i got a chain reaction that was 2 min
Nice game; does not work in the flash viewer.
Hey, can I use the atom spites? BTW nice game, I like it!
so cool!
love it!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WOW THIS ROCKS THIS ROCKS THIS ROX
Since some changes keep happening even though only one colour was left. How about you make the changes stop when there is only one colour left.
There is an iteration (recursion) limiter so that if an 'infinite' recursion is possible (the stack of pending changes does not reduce to 0) it will simply halt.
There are 9 squares left when green won.
Yes, there can be ... a colour wins when there are no opponent colours left on the board, not when the board is fully occupied by a colour.
Nein,8!
Wow. It's awesome.
Great
Oh I see how it works. Very neat!
I loaded the board >:D one in each corner, two in each edge, and three in each center!
amazing!
reminds me of reversi
Cool Game!
Hello! My scratch hack is here: http://www.mediafire.com/?j3mztmyndmi
This is awesome!!!
When I played this, there were like 25 blues, and 3 greens. One move, make it go from 25 blues and 3 greens, to 28 greens. Wtf?
That's why it's sometimes called Chain Reaction ... the rules means that it can tip from one state to another instantly if you set the board up right. The trick is to work out when and enable this for yourself and stop it for your opponent.
hard
It should wait for all tiles to be filled before saying someone wins. It said blue won even though green could still place on empty tiles.
That's impossible, sadly ... one colour can eradicate another before all the tiles are full. Also, in a 'Chain reaction' it is possible for the changes to perpetuate infinitely. There is therefore a count to stop it after 200 changes.
i've played this type of game before. You made it very well. It's a good game
Great! Love it!
Awesome!!!
this is one of the best games i have seen .
Nice work! The graphics are nice as well.
this is an awesome game!
Cool! XD
Nice! I love it! Great game.
Very impressive!
nice!
Wow, amazing!
Wow, great game!
blue won 21
I first played this as the game "Red Alert" on a BBC micro. You've beaten me to it in making a Scratch version, but I wouldn't have made such a great job as you have. Congratulations!
I like it! Can you add a A.I.?
I would love to, but no time at present. I aim to eventually!
Good job. I really like it!