User Tools

Site Tools


spcs:summer2014:d10

This is an old revision of the document!


Afternoon Teams: (Angel, Jove), (Andrew, Emily, Ed), (Mei-Ling, Clair), (Ellie, Alix), (Zuri, Anastasia), (Jeni, Float), (Penny, Alix), (Fang, Will)

Topics

Assignment

(Sit with your teams!)

Part 0: Blogging all your projects from last week

Please blog your projects from last week :)

Part 1: Blogging about software

Read this important article

Do you agree or disagree with Bill Gates?

Read the opposing side: https://www.gnu.org/philosophy/

(don't forget to add pictures and links)


Part 2: Rock Paper Scissors AI

Today we talked about what is a game. The definition we used is: Ludus, Paida, and Narrative. We also talked about Game Trees and how computers think about games.

Your assignment is as follows:

  • In Processing make a Rock Paper Scissors game.
  • First, draw out the finite state machine (FSM).
  • Try to make the Game AI such that the computer always plays Scissors.
  • Then make an AI where the computer plays random.
  • Then make an AI where the computer tries to learn your patterns and beats you.
  • (Extra) Make your own sprites: http://www.piskelapp.com/
  • (Extra COOL) Make it so that I can select which of the three AI's I'm playing (make a button for each AI).

Note: You can use buttons or keys to represent user input. The choice is yours.

Part 2: Tic Tac Toe AI

Same idea as before:

  • Draw the FSM
  • Player 1 is your user and always starts with X
  • Player 2 is the computer
  • First, make a game that just alternates between X and O when the user clicks
    • Make sure it knows that three is a row is a win + (the other possible state).
  • Then, add the AI's
  • On to the AI's, make the computer play the first open spot it finds
  • Next, make another AI where the computer plays the random spot it finds
  • Finally, make a computer that will always tie the game (perfect AI)
  • (Extra COOL) Make it so that I can select which of the three AI's I'm playing (make a button for each AI).
/soe/sherol/.html/teaching/data/attic/spcs/summer2014/d10.1406574905.txt.gz · Last modified: 2014/07/28 12:15 by ffpaladin