Revisa tu proyecto de tres en línea

NEXT YEAR

I was looking for ways to scaffold this project without excessive hand-holding, and I decided to have them implement a randomly playing computer player first, then give it a little strategy (using the final "best empty square" rule), and then build in the advanced strategy later. As a result, this first lab doesn't have to wait until U5. For example, it might be nice to have it at the end of U3 or the beginning of U4 before TCP since that project uses broadcast and this first is easier to understand than that project. --MF, 6/7/18

If we go with this approach next year, we need to update the link at the bottom of 3.2.2. --MF, 6/8/18

PG: I think we need this entire lab as part of the "message" of our course. I'd rather it be main than optional. How can we handle our tight time constraints? /Can/ we?

BH: Move to non-optional!

MF: Project still needs to be wrapped up and updated online

En este laboratorio, ampliarás tu programa de tres en línea  para hacer que la computadora juegue contra ti.

En esta página, revisarás los bloques de tu anterior proyecto del juego de tres en línea.

  1. Abre tu proyecto U3L2-Tresenlinea, y guárdalo como U5-Tresenlinea así que seguirás teniendo tu versión antigua como copia de seguridad.
  2. Juega cada parte del juego, detente antes de terminar, y luego da clic en cada uno de los siguientes bloques. Habla con tu compañero Discute lo que hace cada expresión y cómo funciona su código.
    1. board
    2. Puedes editar un bloque para recordarte cómo funciona si lo has olvidado.
    3. possible winning triples
    4. status of all winning triples
    5. won? (X)
  3. Talk with Another Pair Dos de estos bloques informan sobre lo que hay en el tablero pero de diferentes maneras: estados de todos los triples ganadores y tablero. ¿Por qué necesitas ambos? ¿Cuándo usas cada uno de estos?