martes, 28 de diciembre de 2010

Arduino TRES EN RAYA - 2 jugadores

Pues aqui esta el tres en raya para arduino, implementando el potenciometro que explique anteayer como modo de seleccion.
De momento es para dos jugadores, mientras me curro como hacer que el bicho elija en condiciones.
Pero bueno, por lo menos el juego funciona y es solo implementar la funcion de la IA.

Video: http://www.youtube.com/watch?v=qVByAYkbA9U

Quien quiera todo el código, que lo pida en los comentarios.

/*
3 en raya or TIC TAC TOE
You can play against other Human Player. Select Circle or X pushing one
button and twisting a potenciometer.
Hardware needed:
- push button in digital pin 12
- potenciometer in analog pin 0
- 128x64 LCD with glcd library
- Another Human to play!
- Graphics in: http://rapidshare.com/files/439430584/tic_tac_toe.zip
- Demo video in: http://www.youtube.com/watch?v=qVByAYkbA9U
In a near future, I will create a new game against the machine! :)
This code is in the public domain.
Code by Hombrelobo, Timosoft Team. www.mundobocata.com

*/

1 comentario:

  1. HOLA!

    ME PUEDES ENVIAR EL CÓDIGO COMPLETO, POR FAVOR?
    MI EMAIL: f-morais@sapo.pt

    GRACIAS

    FM

    ResponderEliminar