Interactive dice game pits man against machine

posted Mar 25th 2011 7:00am by
filed under: arduino hacks, toy hacks

dice_game

While most dice games are based on luck and chance more than anything else, [Mike] decided he wanted to create a dice game that took a little more skill to play. He built a replica of a game found in Ian Stewart’s “The Cow Maze”, a book of mathematical stories and puzzles.

The theory behind the game is as follows:

A number is randomly drawn and is considered the “heap”. Players take turns reducing the heap, using the die to represent the number they would like to remove. The only restrictions placed on moves are that you cannot re-use the same number chosen by your opponent in the preceding move, nor can you use the number on the die face opposite that number. The winner of the game is the individual reducing the heap to exactly zero, though you can also lose the game automatically if you reduce the heap to a negative number.

The game operates using a magnet-loaded wooden die and hall sensors built into the playing surface. The sensors relay the value of the die’s face to the ATmega chip he used to run the game. His code provides the logic for your computer opponent as well as for keeping score.

The whole project is wrapped up in a nice-looking wooden box that gives it a bit of old time-y charm, micro controller and LCD aside.

Be sure to check out the video below to see a few rounds of the game being played, and swing by his site for more details.

[via SparkFun]

Read the rest of this entry »

Roll the D’Icey

posted Jan 24th 2011 10:50am by
filed under: toy hacks

Most of the dice related hacks we run into have to do with pseudo random number generation, but today we saw something different. This sleek looking jumbo die is actually a prize holding box opened by a secret sequence of rotations. Using an accelerometer and an ATmega 328 with a sub-micro servo to control the locking mechanism. Worried about the batteries going flat and losing your treasure indefinitely? Good news! The batteries are accessable without giving away the secret inside.

It also turns out that this is an update to an earlier project from the same laboratory, so be sure to check that out as well to see where this build came from. Code is available for anyone looking to make their own, as well as a useful parts list.

[via Hacked Gadgets]




Electronic dice has option for 20 or 100 sides

posted Jan 17th 2011 6:00am by
filed under: arduino hacks

[Bluewraith] built himself an electronic dice using a 555 timer and 4017 counter. This is a classic project and he enjoyed doing it but wondered about making a 20-sided dice. So he grabbed his Arduino and got to work. A switch on the final project selects between 20 or 100 sides. He used a MAX7219 to control the 7-segment displays, and a standalone AVR chip for the rest of it.

If you missed it back in October you should also look in on this 6-sided dice. It also uses an AVR running the Arduino bootloader but a mercury switch allows the player to shake the box in order to start a roll.

One last note, we made a conscious decision to use the word ‘Dice’ instead of the grammatically correct ‘Die’ which is its singular version. We think ‘Die’ can be a bit too confusing and we’re not the only ones.

Electronic dice, overkill and simplified

posted Oct 4th 2010 7:35am by
filed under: Microcontrollers

[littlebird] posted a tutorial on making electronic dice.  He’s using an ATmega328 for the numbers work, and a mercury switch to activate it all. A nice blue enclosure to match the blue LEDs he’s using for the number display wraps it up nicely. Of course, someone had to mention that this was an amazing amount of over kill and it could just be done with a 555 timer like they used to do “back in the day”. [littlebird] responded with another tutorial to prove that he hadn’t forgotten how to work with the basics. He goes on to point out, now that we see both in action, that he can expand his microcontroller based one quickly with a few lines of code, where every new feature added to the 555 timer version would require additional components.

You can catch videos of both after the break.

Read the rest of this entry »

Dice-O-Matic

posted May 26th 2009 11:10am by
filed under: robots hacks

[Scott] runs gamesbyemail.com. One of his biggest hurdles was producing real random numbers for the games. He had tried various methods like math.random and random.org, but kept getting complaints about the quality of the random numbers. His solution was to build an automatic dice roller. His initial attempts were made from Legos and were never quite reliable enough to be put into the system. The Dice-O-Matic however has proven to be a random number generating monster. It is 7 feet tall and capable of 1.3 million dice rolls per day. Wow.

[thanks Troy]




Digital Dice

posted May 20th 2009 1:17pm by
filed under: classic hacks, led hacks

dnd

There have been several attempts at bringing Dungeons & Dragons up to date with modern technology. Most attempts have been in the form of computer games that somehow fail to capture the essential experience. This attempt, however seems to add some techie flair to while keeping the game the same. [Itay] has built some digital dice. Simply choose how many sides you want your dice to have, then give it a shake.  OK, a random number generator isn’t that groundbreaking, but he did have to do some pretty intense soldering. The LED matrix is pretty cool, but we like looking at the back. You can see it in the video after the break.

Read the rest of this entry »

Hack a Day serves up fresh hacks each day, every day from around the web as well as hacking related news.

Send us your hacks






     




Hacks

Resources