Web game bot coded with Python

We find the programming challenge of game-playing bots to be fascinating. Take a look at this Python bot which plays Burrito Bison all the way through (video after the break). This is a totally pedantic exercise which has no purpose, other than to hone your mastery of a certain programming problem. And to that we say Bravo!

We looked in on a similar project which used some C# code to dominate the game Bejeweled Blitz. We’re not fantastic at C# and that code was never made public. But [Audionatics] has released this code through Github, and it’s written in Python which is a language in which we’re well versed.

The script monitors pixel locations to use as an input, which [Audionautics] admits is very error-prone. But if everything is setup just right it works like a charm. He’s also using the PyWin package which we believe is what lets the script move the cursor and register button clicks. We think this is really fun, but it make us wonder about the black-hat possibilities. What are the chances this could be turned into a gambling bot? Scary thought, huh?

[Read more…]

Circuit Playground – An electronics reference app from Adafruit

It’s not everyday that we review software around here, but the folks at Adafruit recently put together an iOS app that I figured might be of interest. Their iPad/iPhone compatible application is called “Circuit Playground”, and it includes all sorts of handy electronics reference tools. For the context of this review, it should be noted that I paid for the application myself, and that I have had no communication with the Adafruit team regarding my assessment of the app.

[Read more…]

Tweets send your balls flying (on TV)

Members from the London Hackerspace recently got a little on-air time with a ping pong ball launcher. They were invited to build something for the Click show on BBC. The launcher that they built responds to hash tags on Twitter by barraging the audience with balls.

The hardware was built in two parts. The first is a dispenser that responds to incoming Tweets by releasing one ball onto a set of staging ramps. The other portion is the launcher itself. Building it like this makes it a rapid fire device, as the spinning wheels of the launcher make quick work of several dozen balls just waiting to be let loose. Check out some footage from the show after the jump.

We like this one just as much as that remote controlled launcher. We’re glad to have seen these both because we happen to have a surplus of the balls lying around since we built that clock and we’re not about to undertake some of the more dangerous ping pong based projects we’ve seen. [Read more…]

Color sensor gives the RGB values of anything

[Rick Osgood] wanted to build a color sensor that could be held up to any object to get RGB color values. He originally started with a photoresistor and a few LEDs, but couldn’t get that to work reliably. [Rick] finally completed his color sensor after finding a digital luminosity sensor on Adafruit, ending up with a pretty accurate piece of hardware to judge the color of something.

The idea behind the color sensor is to light up red, green, and blue LEDs and see how much light is reflected back from the object with a luminosity sensor. [Rick] chose an Arduino to do all the heavy lifting for the light sensor and activating the LEDs.

After a few tests [Rick] got his color sensor working, but it’s not up to par with what he had expected. This isn’t really a problem: the LEDs probably don’t have the same brightness and the luminosity sensor doesn’t respond evenly across the entire rainbow. Those things can always be fixed in software, though. It’s a nice project that could serve as part of a prototype for this color picker pen.

Beer mini-kegs turned into a cyclonic dust collector

[Darrell] made his own cyclonic dust separator which connects to a shop vac. We’re amused by his poke at Dyson’s marketing machine where he mentions that the ads say it took years to perfect those vacuum cleaners and he managed to put his together in a few hours…. from trash/recyclables no less!

Two mini-kegs are used as the separating vessel. The only other parts are some PVC plumbing fittings which help to direct the air and give him a way to attach the collector to the shop vac. The top keg is where all of the magic happens. Air and debris is sucked in through the hose coming in the side wall. A 45 degree elbow directs it downward and to the side, which starts the cyclonic action. The shop vac is attached to the tube in the top, with a cylinder extending into the keg. The spinning air must make a sharp turn to get into that cylinder; it’s at this point the debris drops out into the lower keg. See for yourself in the clip after the break.

This isn’t the first time we’ve seen dust collectors that use this concept. [Darrell] pointed out this one made out of plastic cups, and this other made from a 5-gallon bucket.

[Read more…]

Building LED walls on the cheap

Around this time last year, [KopfKopfKopfAffe] was enlisted as a set designer and was told to build some sort of light effects for electronic music parties. The budget for the project wasn’t much at 200 Euros, but he did manage to build decent 5×5 RGB LED matrix that is fully controllable by a computer.

[KopfKopfKopfAffe] didn’t have the time or money to wait for manufactured PCBs, so a bunch of perfboard was placed in a CNC mill with a pen to act as a plotter. All the lines that needed soldered were drawn on by the mill, a feat that probably saved hours of looking at the design before committing solder to iron.

A total of five boards were constructed, each one capable of controlling five RGB LEDs. Each board can be dasiy-chained with an RS-232 serial connection for further expansion. The only thing that’s needed to control the matrix is 17 bits that includes an address and RGB color data for each LED. The system only cost about 10 Euros per node, but we think that could be significantly reduced by leaving out the Molex and DB-9 connectors. [Kopf] project turned out very nice, check it out after the break.

[Read more…]