Welcome to my competition to build the best Connect Four playing AI program. See notes below on how to enter. Currently there are six programs: Human - so you can play against the AIs Random - just picks columns at random Randomish - picks a column and sticks with it until it can't go beetle16 - AI by @beetle16 (see notes) PullJosh - AI by @PullJosh (see notes) A_big_cow - AI by @A_big_cow (see notes) gje2003 by @gje2003 (may not be working quite right) Hopefully I'll be able to add some more soon, with your help!
To enter you need to remix this project but only change the script of the sprite called "Remix this". Give your AI a name where it says and attach your script to the custom block "Put your script here". You can add more custom blocks as well as more variables and lists but only "for this sprite only". Your script needs to set the variable "column" to a whole number 1-7 which will be the column your counter is dropped into. The list "positions" is a 'map' of the board. Item 1 of the list is the top left position, item 2 is below this and so on, item 7 is the top of column 2 etc. Your program can read this list but NOT write to it. The game will update the list after each turn with either "empty", "red" or "blue". The game will randomly decide if you will be playing as red or blue, setting local variable "Colour", (red always starts). Once you have finished your remix, share it and I will then add your AI to the original project (giving credit of course). Hopefully ending up with many AIs doing battle! Good luck. Credit to @sprite746 who's project inspired me (I also used their grid costume!) and to Howard Wexler & Ned Strongin (who designed the original game) 02/01/2015 - shared 19/01/2015 - added AI by http://scratch.mit.edu/projects/10043287/ (I did the remix myself) 25/01/2015 - added AI by http://scratch.mit.edu/projects/42395968/ (I did the remix myself) 25/01/2015 - enter names or numbers when selecting players 26/01/2015 - added AI by http://scratch.mit.edu/projects/16243147/ (I did the remix myself) 26/01/2015 - I made a mistake with 's AI, now fixed.