I've finished Surrounded in Unity. It's a strategy game. You have a counter and 4 blocks and the aim is to surround your opponent, so that they can't move their counter or place a block. I used Minimax (with an eval function) with increasing depth for the difficulty levels. The music changes as you get closer to being surrounded.
I've written this app to help victims of bullying. It's on the App Store. I learnt a lot about data persistence.
I've finished my second game in Unity, Noughts & Crosses. It's now on the Apple App store. (There are lots of Noughts & Crosses games; mine is called "Noughts & Crosses (by James L)".)
I have made my first game in Unity, a 2D jumper game called Fly Orange (see the C# / Unity page for a link to download).
I have now re-written Connect Four with minimax. Find it on Python strategy games. The minimax code is below:
I have now completed Traffic Jam (find it in Python strategy games)
I have finally managed to link all my programs with a menu (trinket.io/python3/df7b99779e?runOption=console) to work. To make this work I needed to make another program.
I have now competed my lily pad game (see it here: Python arcade games). The hardest bit was getting the frog to move at the same speed as the lily pad it was on. It confused me because you can't get a return from the update function (explained in flappy-bird-done.html), so I used a global variable to report the speed of the lily pad.
I have now tested my table football so it can sense a goal for both teams and have done the display in Pygame. The next step is to install it on the table.
I found it hard to run it using .bashrc (allows you to run a program when you boot up) because you need to make a way of exiting other than the usual quit button. I rescued it using remote access through puTTY on a PC. In the code on the Electronics page, you can see I added buttons into the Pygame window to exit and reset.
I have finished Space Invaders, which uses lots of classes and is my first Pygame program using sound. The code is on the Arcade Games page.
I've finally found out how to do collision detection for my new game Flappy Bird.
We would do a similar thing for flappy bird (including updating using self.rect = Rect (...) and store it in the bird object and then call these lines
My new pygame program is flappy bird. At first I zipped along until I had done the moving of flappy and the pipes. My first problem was that I couldn't get the collision detection to work. It was easy in scratch, if touching flappybird, but in pygame it looked like I had to try again but then I looked up how to do it and found some promising results.
AIY Projects is a voice projects powered by google(at aiyprojects.withgoogle.com/voice#project-overview). I got the kit free with the MagPi magazine. I've got it to detect words and say something in response (I say"My name is James" and it says"Hello, I hear you have a blog").
I have considered a few projects e.g. a program were the computer sings (la, laaaa) and you have to sing the right pitch back (it is very hard to detect the pitch though).
I am doing lots of projects every projects all the time and I can't put them all on the website so I've made a blog.