class TicTacToe: def init (self): # board is a list of 10 strings representing the board(ignore index 0) self.board = [" "]*10 self.
|
|
- Kerry Taylor
- 5 years ago
- Views:
Transcription
1 The goal of this lab is to practice problem solving by implementing the Tic Tac Toe game. Tic Tac Toe is a game for two players who take turns to fill a 3 X 3 grid with either o or x. Each player alternates choosing an open space in the grid to mark with either x for a player or o for the other player. The goal (to win) is to have three xs or 3 os in a row, column or diagonal. The game can also end with a draw if the grid is full but neither player has won. Some part of the Tic Tac Toe class has been provided to you in the file called Lab_TicTacToe. The init method in the given file is described below: class TicTacToe: def init (self): # board is a list of 10 strings representing the board(ignore index 0) self.board = [" "]*10 self.board[0]="#" The constructor init creates a list of 10 objects of type string. Each of these string objects would have the empty space character inside it. The first one at index 0 will be ignored (initialized with some character but not space) and the other 9 represent the 9 cells of the 3 x 3 Tic Tac Toe grid. You have to complete the lab by completing the three tasks described below: Task 1 Implement the methods assignmove and drawboard in TicTacToe class. 1.1 The method assignmove(self,cell,symbol) requests the Tic Tac Toe object to assign the symbol to the cell of the grid. The parameter cell should be a valid integer value between 1 and 9 (both end points inclusive). The method must check the validity of the value of cell before proceeding to assign the symbol to it. For the second parameter symbol, you may assume that symbol is an object of type str and is always either x or o. 1.2 The method drawboard(self) would display the board as follows: The first grid on the left represents the current state of the board while the grid on the right is static, and represents the index of each cell (like the numeric pad on the keyboard). The two grids are separated by a tab (\t). Once you have completed Task 1, test your methods by creating an instance of TicTacToe by writing the following line of code in the main function that is provided in the given file: myboard=tictactoe() Fill some cells in the board using the assignmove method. For example to put an x in the 4 th cell write the following:
2 myboard.assignmove(4, 'x') Use assignmove multiple times to fill up the board. Use the drawboard method in the TicTacToe class to draw the board. Let s say the following code is written in the main function to populate the board with x and o : myboard.assignmove(4,'x') myboard.assignmove(6,'o') myboard.assignmove(1,'o') myboard.assignmove(14,'x') myboard.drawboard() The following board would be displayed when the code is evaluated: x o o Please note the last assignmove(14, x ) did not impact any cells in the board. Task 2 Implement the methods boardfull,cellisempty and iswinner in TicTacToe class 2.1 The method boardfull(self) should check if all cells have been filled out or not. This method should return True if all cells have been filled out and False otherwise. 2.2 The method cellisempty(self, cell) checks whether a given cell is available to be assigned a value or not. The method should ensure that the cell value provided to the method is a valid integer number between 1 and 9 (both end points inclusive). If the cell value is not valid, the method should return False. If the cell value is valid and the cell is not occupied by x or o the method should return True else the method should False. 2.3 The method iswinner(self, symbol) should return True if a row, column or diagonal in the board is filled out with the same symbol x or o and False otherwise. This method is called within the method whowon(self) which has been provided in the given file. After implementing Task 2 write statements in the main function that uses and tests the methods. Populate the board with x or o by using the assignmove method. After populating the board, check whether the methods cellisempty, boardfull and iswinner are returning the correct expected value or not. Task 3 Writing the Tic Tac Toe game Using the Methods in TicTacToe class You should remove all the test code that you wrote in the main function before writing the program described below: Write a program that allows two players, x and o, to alternate and provide their moves on the board by entering the cell number that they want to fill in. The program should check the input entered by the user and only allow a valid integer value between 1 and 9 for move/cell number. If cell number is not valid or is not available (has already been filled in by x or o ) the player should be prompted to enter another move (i.e. a cell number). The program repeatedly asks the user to enter a move until a valid cell value is entered. Here is a sample output describing this program behavior:
3 Welcome to Tic Tac Toe Series It is the turn for x. What is your move? 13 Invalid move. Turn for x again.what is your move? 2 x It is the turn for o. What is your move? 2 2 is not available. Turn for o again.what is your move? 3 x o It is the turn for x. What is your move? 3 3 is not available. Turn for x again.what is your move? 6 x x o It is the turn for o. What is your move? A game session in Tic Tac Toe ends with a win (for x or o ) or tie. Your program should use the methods in the TicTacToe class to implement the game. Once a game session ends, the program gives the player the option to play the game again by displaying the following prompt: Do you want to play another game? (Y/N) The program will continue to play Tic Tac Toe until the player enters a letter other than y or Y. Please observe the following Sample Output: Welcome to Tic Tac Toe Series It is the turn for x. What is your move? 1 x It is the turn for o. What is your move? 2
4 It is the turn for x. What is your move? 5 x It is the turn for o. What is your move? 6 x o It is the turn for x. What is your move? 9 x x o x wins. Congrats! Press Enter to continue Do you want to play another game? (Y/N)Y It is the turn for x. What is your move? 7 x It is the turn for o. What is your move? 8 It is the turn for x. What is your move? 4 x It is the turn for o. What is your move? 5 It is the turn for x. What is your move? 2
5 x It is the turn for o. What is your move? 1 It is the turn for x. What is your move? 9 It is the turn for o. What is your move? 6 x o o It is the turn for x. What is your move? 3 x o o o x x It's a tie. Press Enter to continue Do you want to play another game? (Y/N)n
CSC 110 Lab 4 Algorithms using Functions. Names:
CSC 110 Lab 4 Algorithms using Functions Names: Tic- Tac- Toe Game Write a program that will allow two players to play Tic- Tac- Toe. You will be given some code as a starting point. Fill in the parts
More informationCOSC 117 Programming Project 2 Page 1 of 6
COSC 117 Programming Project 2 Page 1 of 6 Tic Tac Toe For this project, you will write a program that allows users to repeatedly play the game of Tic Tac Toe against the computer. See http://en.wikipedia.org/wiki/tic-tac-toe
More informationCOSC 117 Spring 2018 Programming Project 3 Page 1 of 5. For this project, you will write a program that plays the game Tic Tac Toe.
COSC 117 Spring 2018 Programming Project 3 Page 1 of 5 Tic Tac Toe For this project, you will write a program that plays the game Tic Tac Toe. Overview The program will welcome the user and ask if they
More informationTic-Tac-Toe and machine learning. David Holmstedt Davho G43
Tic-Tac-Toe and machine learning David Holmstedt Davho304 729G43 Table of Contents Introduction... 1 What is tic-tac-toe... 1 Tic-tac-toe Strategies... 1 Search-Algorithms... 1 Machine learning... 2 Weights...
More informationPROBLEMS & INVESTIGATIONS. Introducing Add to 15 & 15-Tac-Toe
Unit One Connecting Mathematical Topics Session 10 PROBLEMS & INVESTIGATIONS Introducing Add to 15 & 15-Tac-Toe Overview To begin, students find many different ways to add combinations of numbers from
More informationLab 7: 3D Tic-Tac-Toe
Lab 7: 3D Tic-Tac-Toe Overview: Khan Academy has a great video that shows how to create a memory game. This is followed by getting you started in creating a tic-tac-toe game. Both games use a 2D grid or
More informationArrays. Independent Part. Contents. Programming with Java Module 3. 1 Bowling Introduction Task Intermediate steps...
Programming with Java Module 3 Arrays Independent Part Contents 1 Bowling 3 1.1 Introduction................................. 3 1.2 Task...................................... 3 1.3 Intermediate steps.............................
More informationCPSC 217 Assignment 3 Due Date: Friday March 30, 2018 at 11:59pm
CPSC 217 Assignment 3 Due Date: Friday March 30, 2018 at 11:59pm Weight: 8% Individual Work: All assignments in this course are to be completed individually. Students are advised to read the guidelines
More informationThe Mathematics of Playing Tic Tac Toe
The Mathematics of Playing Tic Tac Toe by David Pleacher Although it has been shown that no one can ever win at Tic Tac Toe unless a player commits an error, the game still seems to have a universal appeal.
More informationThis game can be played in a 3x3 grid (shown in the figure 2.1).The game can be played by two players. There are two options for players:
1. bjectives: ur project name is Tic-Tac-Toe game. This game is very popular and is fairly simple by itself. It is actually a two player game. In this game, there is a board with n x n squares. In our
More informationEmbedded Systems Lab
Embedded Systems Lab UNIVERSITY OF JORDAN Tic-Tac-Toe GAME PROJECT Embedded lab Engineers Page 1 of 5 Preferred Group Size Grading Project Due Date (2) Two is the allowed group size. The group can be from
More informationmywbut.com Two agent games : alpha beta pruning
Two agent games : alpha beta pruning 1 3.5 Alpha-Beta Pruning ALPHA-BETA pruning is a method that reduces the number of nodes explored in Minimax strategy. It reduces the time required for the search and
More informationIntro to Java Programming Project
Intro to Java Programming Project In this project, your task is to create an agent (a game player) that can play Connect 4. Connect 4 is a popular board game, similar to an extended version of Tic-Tac-Toe.
More informationBMT 2018 Combinatorics Test Solutions March 18, 2018
. Bob has 3 different fountain pens and different ink colors. How many ways can he fill his fountain pens with ink if he can only put one ink in each pen? Answer: 0 Solution: He has options to fill his
More informationUniversity of Amsterdam. Encyclopedia of AI project. Tic-Tac-Toe. Authors: Andreas van Cranenburgh Ricus Smid. Supervisor: Maarten van Someren
University of Amsterdam Encyclopedia of AI project Tic-Tac-Toe Authors: Andreas van Cranenburgh Ricus Smid Supervisor: Maarten van Someren January 27, 2007 Encyclopedia of AI, assignment 5 Tic-tac-toe
More informationTic-tac-toe. Lars-Henrik Eriksson. Functional Programming 1. Original presentation by Tjark Weber. Lars-Henrik Eriksson (UU) Tic-tac-toe 1 / 23
Lars-Henrik Eriksson Functional Programming 1 Original presentation by Tjark Weber Lars-Henrik Eriksson (UU) Tic-tac-toe 1 / 23 Take-Home Exam Take-Home Exam Lars-Henrik Eriksson (UU) Tic-tac-toe 2 / 23
More informationCS151 - Assignment 2 Mancala Due: Tuesday March 5 at the beginning of class
CS151 - Assignment 2 Mancala Due: Tuesday March 5 at the beginning of class http://www.clubpenguinsaraapril.com/2009/07/mancala-game-in-club-penguin.html The purpose of this assignment is to program some
More informationProgramming Problems 14 th Annual Computer Science Programming Contest
Programming Problems 14 th Annual Computer Science Programming Contest Department of Mathematics and Computer Science Western Carolina University April 8, 2003 Criteria for Determining Team Scores Each
More informationEXPLORING TIC-TAC-TOE VARIANTS
EXPLORING TIC-TAC-TOE VARIANTS By Alec Levine A SENIOR RESEARCH PAPER PRESENTED TO THE DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE OF STETSON UNIVERSITY IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR
More informationA Tic Tac Toe Learning Machine Involving the Automatic Generation and Application of Heuristics
A Tic Tac Toe Learning Machine Involving the Automatic Generation and Application of Heuristics Thomas Abtey SUNY Oswego Abstract Heuristics programs have been used to solve problems since the beginning
More informationFor our EC331 project we successfully designed and implemented a PIC based Tic-Tac-Toe game using the PIC16874.
EC331 Project Report To: Dr. Song From: Colin Hill and Peter Haugen Date: 6/7/2004 Project: Pic based Tic-Tac-Toe System Introduction: For our EC331 project we successfully designed and implemented a PIC
More informationHW4: The Game of Pig Due date: Thursday, Oct. 29 th at 9pm. Late turn-in deadline is Tuesday, Nov. 3 rd at 9pm.
HW4: The Game of Pig Due date: Thursday, Oct. 29 th at 9pm. Late turn-in deadline is Tuesday, Nov. 3 rd at 9pm. 1. Background: Pig is a folk jeopardy dice game described by John Scarne in 1945, and was
More informationHW4: The Game of Pig Due date: Tuesday, Mar 15 th at 9pm. Late turn-in deadline is Thursday, Mar 17th at 9pm.
HW4: The Game of Pig Due date: Tuesday, Mar 15 th at 9pm. Late turn-in deadline is Thursday, Mar 17th at 9pm. 1. Background: Pig is a folk jeopardy dice game described by John Scarne in 1945, and was an
More informationLab Exercise #10. Assignment Overview
Lab Exercise #10 Assignment Overview You will work with a partner on this exercise during your lab session. Two people should work at one computer. Occasionally switch the person who is typing. Talk to
More informationTac Due: Sep. 26, 2012
CS 195N 2D Game Engines Andy van Dam Tac Due: Sep. 26, 2012 Introduction This assignment involves a much more complex game than Tic-Tac-Toe, and in order to create it you ll need to add several features
More informationExcel Lesson 6 page 1 Jan 18
Excel Lesson 6 page 1 Jan 18 Lesson 6 (attached is Lesson6 Worksheets.xlsx) Monday Jan 18 due by Jan 31 We begin today's lesson with using an Excel sheet with the game of Tic-Tac-Toe. This simple game
More information2359 (i.e. 11:59:00 pm) on 4/16/18 via Blackboard
CS 109: Introduction to Computer Science Goodney Spring 2018 Homework Assignment 4 Assigned: 4/2/18 via Blackboard Due: 2359 (i.e. 11:59:00 pm) on 4/16/18 via Blackboard Notes: a. This is the fourth homework
More informationCS/ ECE 252 Introduction to Computer Engineering
CS/ ECE 252 Introduction to Computer Engineering Homework 8 Due at Lecture on Monday, May 4 th Instructions: You should do this homework in a group of TWO or THREE students from the SAME 252 section. You
More informationCoin Cappers. Tic Tac Toe
Coin Cappers Tic Tac Toe Two students are playing tic tac toe with nickels and dimes. The player with the nickels has just moved. Itʼs now your turn. The challenge is to place your dime in the only square
More information1, 2,, 10. Example game. Pieces and Board: This game is played on a 1 by 10 board. The initial position is an empty board.
,,, 0 Pieces and Board: This game is played on a by 0 board. The initial position is an empty board. To Move: Players alternate placing either one or two pieces on the leftmost open squares. In this game,
More informationRules of the game. chess checkers tic-tac-toe...
Course 8 Games Rules of the game Two players: MAX and MIN Both have as goal to win the game Only one can win or else it will be a draw In the initial modeling there is no chance (but it can be simulated)
More informationPublic-Service Announcement
Public-Service Announcement Autofocus is Berkeley s first mobile photography club. Join us as we build a community of phone photographers at Cal. All you need to be part is an interest in photography and
More informationProject Connect Four (Version 1.1)
OPI F2008: Object-Oriented Programming Carsten Schürmann Date: April 2, 2008 Project Connect Four (Version 1.1) Guidelines While we acknowledge that beauty is in the eye of the beholder, you should nonetheless
More informationObject-Oriented Design
Object-Oriented Design CSE 5236: Mobile Application Development Course Coordinator: Dr. Rajiv Ramnath Instructor: Adam C. Champion, Ph.D. Reading: Applying UML and Patterns, Chaps. 1, 6 (OO ref.); Big
More informationGame Description Logic and Game Playing
Game Description Logic and Game Playing Laurent Perrussel November 29 - Planning and Games workshop IRIT Université Toulouse Capitole 1 Motivation Motivation(1/2) Game: describe and justify actions in
More informationGame Variations: Ultimate Tic Tac Toe
Game Variations: Ultimate Tic Tac Toe Middle School In this lesson, students will experience the engineering process when creating modifications to a familiar game. Next Generation Science Standards MS-ETS1-1
More informationThis assignment is worth 75 points and is due on the crashwhite.polytechnic.org server at 23:59:59 on the date given in class.
Computer Science Programming Project Game of Life ASSIGNMENT OVERVIEW In this assignment you ll be creating a program called game_of_life.py, which will allow the user to run a text-based or graphics-based
More informationdominoes Documentation
dominoes Documentation Release 6.0.0 Alan Wagner January 13, 2017 Contents 1 Install 3 2 Usage Example 5 3 Command Line Interface 7 4 Artificial Intelligence Players 9 4.1 Players..................................................
More information1 Modified Othello. Assignment 2. Total marks: 100. Out: February 10 Due: March 5 at 14:30
CSE 3402 3.0 Intro. to Concepts of AI Winter 2012 Dept. of Computer Science & Engineering York University Assignment 2 Total marks: 100. Out: February 10 Due: March 5 at 14:30 Note 1: To hand in your report
More informationSudokuSplashZone. Overview 3
Overview 3 Introduction 4 Sudoku Game 4 Game grid 4 Cell 5 Row 5 Column 5 Block 5 Rules of Sudoku 5 Entering Values in Cell 5 Solver mode 6 Drag and Drop values in Solver mode 6 Button Inputs 7 Check the
More informationProblem A: Complex intersecting line segments
Problem A: Complex intersecting line segments In this problem, you are asked to determine if a set of line segments intersect. The first line of input is a number c 100, the number of test cases. Each
More informationEleventh Annual Ohio Wesleyan University Programming Contest April 1, 2017 Rules: 1. There are six questions to be completed in four hours. 2.
Eleventh Annual Ohio Wesleyan University Programming Contest April 1, 217 Rules: 1. There are six questions to be completed in four hours. 2. All questions require you to read the test data from standard
More informationCMPS 12A Introduction to Programming Programming Assignment 5 In this assignment you will write a Java program that finds all solutions to the n-queens problem, for. Begin by reading the Wikipedia article
More informationBegin this assignment by first creating a new Java Project called Assignment 5.There is only one part to this assignment.
CSCI 2311, Spring 2013 Programming Assignment 5 The program is due Sunday, March 3 by midnight. Overview of Assignment Begin this assignment by first creating a new Java Project called Assignment 5.There
More informationGeneral Principals. Turn Priority - this player may choose which player goes first.
General Principals The player who wins the pre-game roll off may either decide Turn Priority or Deployment Priority. If they choose Turn Priority, then their opponent is granted Deployment Priority. Turn
More informationLecture 13 Intro to Connect Four AI
Lecture 13 Intro to Connect Four AI 1 hw07: Connect Four! Two players, each with one type of checker 6 x 7 board that stands vertically Players take turns dropping a checker into one of the board's columns.
More informationAssignment 6 Play A Game: Minesweeper or Battleship!!! Due: Sunday, December 3rd, :59pm
Assignment 6 Play A Game: Minesweeper or Battleship!!! Due: Sunday, December 3rd, 2017 11:59pm This will be our last assignment in the class, boohoo Grading: For this assignment, you will be graded traditionally,
More informationAdversary Search. Ref: Chapter 5
Adversary Search Ref: Chapter 5 1 Games & A.I. Easy to measure success Easy to represent states Small number of operators Comparison against humans is possible. Many games can be modeled very easily, although
More informationHow hard are computer games? Graham Cormode, DIMACS
How hard are computer games? Graham Cormode, DIMACS graham@dimacs.rutgers.edu 1 Introduction Computer scientists have been playing computer games for a long time Think of a game as a sequence of Levels,
More informationLesson 8 Tic-Tac-Toe (Noughts and Crosses)
Lesson Game requirements: There will need to be nine sprites each with three costumes (blank, cross, circle). There needs to be a sprite to show who has won. There will need to be a variable used for switching
More informationUnit 5: What s in a List
Lists http://isharacomix.org/bjc-course/curriculum/05-lists/ 1 of 1 07/26/2013 11:20 AM Curriculum (/bjc-course/curriculum) / Unit 5 (/bjc-course/curriculum/05-lists) / Unit 5: What s in a List Learning
More informationTeacher Workbooks. Mathematics Series Multiplication Starter Pack Volume Teachnology Publishing Company A Division of Teachnology, Inc.
Teacher Workbooks Mathematics Series Multiplication Starter Pack Volume 1 2002 Teachnology Publishing Company A Division of Teachnology, Inc. For additional information, visit us at www.teach-nology.com/publishing
More information2 person perfect information
Why Study Games? Games offer: Intellectual Engagement Abstraction Representability Performance Measure Not all games are suitable for AI research. We will restrict ourselves to 2 person perfect information
More informationthe alien has the option of asserting that all 100 aliens have been to the living room by now. If this assertion is false, all 100 aliens are thrown
UW Math Circle 1. Jafar has four prisoners. He lines up three of them: Aladdin faces the wall, the Sultan stands behind Aladdin, and Abu stands behind the Sultan. The fourth prisoner, Jasmine, is put in
More informationTaffy Tangle. cpsc 231 assignment #5. Due Dates
cpsc 231 assignment #5 Taffy Tangle If you ve ever played casual games on your mobile device, or even on the internet through your browser, chances are that you ve spent some time with a match three game.
More informationIntroduction to Artificial Intelligence CS 151 Programming Assignment 2 Mancala!! Due (in dropbox) Tuesday, September 23, 9:34am
Introduction to Artificial Intelligence CS 151 Programming Assignment 2 Mancala!! Due (in dropbox) Tuesday, September 23, 9:34am The purpose of this assignment is to program some of the search algorithms
More informationPay attention to how flipping of pieces is determined with each move.
CSCE 625 Programing Assignment #5 due: Friday, Mar 13 (by start of class) Minimax Search for Othello The goal of this assignment is to implement a program for playing Othello using Minimax search. Othello,
More informationFor slightly more detailed instructions on how to play, visit:
Introduction to Artificial Intelligence CS 151 Programming Assignment 2 Mancala!! The purpose of this assignment is to program some of the search algorithms and game playing strategies that we have learned
More informationACM International Collegiate Programming Contest 2010
International Collegiate acm Programming Contest 2010 event sponsor ACM International Collegiate Programming Contest 2010 Latin American Regional Contests October 22nd-23rd, 2010 Contest Session This problem
More informationIntroduction Solvability Rules Computer Solution Implementation. Connect Four. March 9, Connect Four 1
Connect Four March 9, 2010 Connect Four 1 Connect Four is a tic-tac-toe like game in which two players drop discs into a 7x6 board. The first player to get four in a row (either vertically, horizontally,
More informationPart II: Number Guessing Game Part 2. Lab Guessing Game version 2.0
Part II: Number Guessing Game Part 2 Lab Guessing Game version 2.0 The Number Guessing Game that just created had you utilize IF statements and random number generators. This week, you will expand upon
More informationWPF PUZZLE GP 2018 ROUND 2 INSTRUCTION BOOKLET. Host Country: Switzerland. Markus Roth, Roger Kohler, Esther Naef
ROUND WPF PUZZLE GP 0 INSTRUCTION OOKLET Host Country: Switzerland Markus Roth, Roger Kohler, Esther Naef Special Notes: CH is short for Confoederatio Helvetica, the Latin name for Switzerland, and appears
More informationTIC TAC TOE GAMES 1 AND 2 PLAYER INTERACTIVE CONTENT KINDLE GAMES AVAILABLE WORLDWIDE
TIC TAC TOE GAMES 1 AND 2 PLAYER INTERACTIVE CONTENT KINDLE GAMES AVAILABLE WORLDWIDE page 1 / 5 page 2 / 5 tic tac toe games pdf Tic-tac-toe (American English), noughts and crosses (British English) or
More informationReal-Time Connect 4 Game Using Artificial Intelligence
Journal of Computer Science 5 (4): 283-289, 2009 ISSN 1549-3636 2009 Science Publications Real-Time Connect 4 Game Using Artificial Intelligence 1 Ahmad M. Sarhan, 2 Adnan Shaout and 2 Michele Shock 1
More informationENEE 150: Intermediate Programming Concepts for Engineers Spring 2018 Handout #7. Project #1: Checkers, Due: Feb. 19th, 11:59p.m.
ENEE 150: Intermediate Programming Concepts for Engineers Spring 2018 Handout #7 Project #1: Checkers, Due: Feb. 19th, 11:59p.m. In this project, you will build a program that allows two human players
More informationhttps://www.teachersp ayteachers.com/store/ Worksheetjunkie
https://www.teachersp ayteachers.com/store/ Worksheetjunkie Copyright 2017 IDEA GALAXY. All rights reserved by author. Permission to copy for single classroom use only. Electronic distribution limited
More informationMARK SCHEME for the October/November 2014 series 9691 COMPUTING. 9691/22 Paper 2 (Written Paper), maximum raw mark 75
CAMBRIDGE INTERNATIONAL EXAMINATIONS Cambridge International Advanced Subsidiary and Advanced Level MARK SCHEME for the October/November 2014 series 9691 COMPUTING 9691/22 Paper 2 (Written Paper), maximum
More informationCMSC 201 Fall 2018 Project 3 Sudoku
CMSC 201 Fall 2018 Project 3 Sudoku Assignment: Project 3 Sudoku Due Date: Design Document: Tuesday, December 4th, 2018 by 8:59:59 PM Project: Tuesday, December 11th, 2018 by 8:59:59 PM Value: 80 points
More informationGame Playing in Prolog
1 Introduction CIS335: Logic Programming, Assignment 5 (Assessed) Game Playing in Prolog Geraint A. Wiggins November 11, 2004 This assignment is the last formally assessed course work exercise for students
More informationMinimax Trees: Utility Evaluation, Tree Evaluation, Pruning
Minimax Trees: Utility Evaluation, Tree Evaluation, Pruning CSCE 315 Programming Studio Fall 2017 Project 2, Lecture 2 Adapted from slides of Yoonsuck Choe, John Keyser Two-Person Perfect Information Deterministic
More informationCSE548, AMS542: Analysis of Algorithms, Fall 2016 Date: Sep 25. Homework #1. ( Due: Oct 10 ) Figure 1: The laser game.
CSE548, AMS542: Analysis of Algorithms, Fall 2016 Date: Sep 25 Homework #1 ( Due: Oct 10 ) Figure 1: The laser game. Task 1. [ 60 Points ] Laser Game Consider the following game played on an n n board,
More informationCSE 3401 Assignment 4 Winter Date out: March 26. Date due: April 6, at 11:55 pm
CSE 3401 Assignment 4 Winter 2013 Date out: March 26. Date due: April 6, at 11:55 pm The submitted assignment must be based on your individual work. Review the Academic Honesty Guidelines for more details.
More information1. Use Pattern Blocks. Make the next 2 figures in each increasing pattern. a) 2. Write the pattern rule for each pattern in question 1.
s Master 1.22 Name Date Extra Practice 1 Lesson 1: Exploring Increasing Patterns 1. Use Pattern Blocks. Make the next 2 figures in each increasing pattern. a) 2. Write the pattern rule for each pattern
More informationFinal Project (Choose 1 of the following) Max Score: A
Final Project (Choose 1 of the following) Max Score: A #1 - The Game of Nim The game of Nim starts with a random number of stones between 15 and 30. Two players alternate turns and on each turn may take
More informationCS2212 PROGRAMMING CHALLENGE II EVALUATION FUNCTIONS N. H. N. D. DE SILVA
CS2212 PROGRAMMING CHALLENGE II EVALUATION FUNCTIONS N. H. N. D. DE SILVA Game playing was one of the first tasks undertaken in AI as soon as computers became programmable. (e.g., Turing, Shannon, and
More information2 Textual Input Language. 1.1 Notation. Project #2 2
CS61B, Fall 2015 Project #2: Lines of Action P. N. Hilfinger Due: Tuesday, 17 November 2015 at 2400 1 Background and Rules Lines of Action is a board game invented by Claude Soucie. It is played on a checkerboard
More informationFinal Project (Choose 1 of the following) Max Score: A
Final Project (Choose 1 of the following) Max Score: A #1 - The Game of Nim The game of Nim starts with a random number of stones between 15 and 30. Two players alternate turns and on each turn may take
More informationRules of the game. chess checkers tic-tac-toe...
Course 9 Games Rules of the game Two players: MAX and MIN Both have as goal to win the game Only one can win or else it will be a draw In the initial modeling there is no chance (but it can be simulated)
More informationInstructions [CT+PT Treatment]
Instructions [CT+PT Treatment] 1. Overview Welcome to this experiment in the economics of decision-making. Please read these instructions carefully as they explain how you earn money from the decisions
More informationProblem F. Chessboard Coloring
Problem F Chessboard Coloring You have a chessboard with N rows and N columns. You want to color each of the cells with exactly N colors (colors are numbered from 0 to N 1). A coloring is valid if and
More informationMovement of the pieces
Movement of the pieces Rook The rook moves in a straight line, horizontally or vertically. The rook may not jump over other pieces, that is: all squares between the square where the rook starts its move
More informationLet's Race! Typing on the Home Row
Let's Race! Typing on the Home Row Michael Hoyle Susan Rodger Duke University 2012 Overview In this tutorial you will be creating a bike racing game to practice keyboarding. Your bike will move forward
More informationUNIT 13A AI: Games & Search Strategies. Announcements
UNIT 13A AI: Games & Search Strategies 1 Announcements Do not forget to nominate your favorite CA bu emailing gkesden@gmail.com, No lecture on Friday, no recitation on Thursday No office hours Wednesday,
More informationNuSMV: Planning as Model Checking
NuSMV: Planning as Model Checking Alessandra Giordani agiordani@disi.unitn.it http://disi.unitn.it/~agiordani Formal Methods Lab Class, April 30, 2014 *These slides are derived from those by Stefano Tonetta,
More informationGame, Set, and Match Carl W. Lee September 2016
Game, Set, and Match Carl W. Lee September 2016 Note: Some of the text below comes from Martin Gardner s articles in Scientific American and some from Mathematical Circles by Fomin, Genkin, and Itenberg.
More informationBoard Game AIs. With a Focus on Othello. Julian Panetta March 3, 2010
Board Game AIs With a Focus on Othello Julian Panetta March 3, 2010 1 Practical Issues Bug fix for TimeoutException at player init Not an issue for everyone Download updated project files from CS2 course
More informationG r a d e. 2 M a t h e M a t i c s. Blackline Masters
G r a d e 2 M a t h e M a t i c s Blackline Masters BLM K 4.1 Assessment Checklist Student s Name Comments BLM 2.N.1.1 Eyes and Fingers BLM 2.N.1.2 Ten-Strips BLM 2.N.1.2 Ten-Strips (continued) BLM 2.N.1.3
More informationUnit 12: Artificial Intelligence CS 101, Fall 2018
Unit 12: Artificial Intelligence CS 101, Fall 2018 Learning Objectives After completing this unit, you should be able to: Explain the difference between procedural and declarative knowledge. Describe the
More informationLEARNING ABOUT MATH FOR GR 1 TO 2. Conestoga Public School OCTOBER 13, presented by Kathy Kubota-Zarivnij
LEARNING ABOUT MATH FOR GR 1 TO 2 Conestoga Public School OCTOBER 13, 2016 6:30 pm 8:00 pm presented by Kathy Kubota-Zarivnij kathkubo@gmail.com TODAY S MATH TOOLS FOR counters playing cards dice interlocking
More informationMore Recursion: NQueens
More Recursion: NQueens continuation of the recursion topic notes on the NQueens problem an extended example of a recursive solution CISC 121 Summer 2006 Recursion & Backtracking 1 backtracking Recursion
More informationCS 4700: Foundations of Artificial Intelligence
CS 4700: Foundations of Artificial Intelligence Bart Selman Reinforcement Learning R&N Chapter 21 Note: in the next two parts of RL, some of the figure/section numbers refer to an earlier edition of R&N
More informationCS61B, Fall 2014 Project #2: Jumping Cubes(version 3) P. N. Hilfinger
CSB, Fall 0 Project #: Jumping Cubes(version ) P. N. Hilfinger Due: Tuesday, 8 November 0 Background The KJumpingCube game is a simple two-person board game. It is a pure strategy game, involving no element
More informationPlan. Related courses. A Take-Away Game. Mathematical Games , (21-801) - Mathematical Games Look for it in Spring 11
V. Adamchik D. Sleator Great Theoretical Ideas In Computer Science Mathematical Games CS 5-25 Spring 2 Lecture Feb., 2 Carnegie Mellon University Plan Introduction to Impartial Combinatorial Games Related
More informationChess and Python revisited
Chess and Python revisited slide 1 there exists a PyGame project http://www.pygame.org/ project-chessboard-282-.html which draws a chess board and allows users to make FIDE legal moves (by clicking on
More informationintroduction to the course course structure topics
topics: introduction to the course brief overview of game programming how to learn a programming language sample environment: scratch to do instructor: cisc1110 introduction to computing using c++ gaming
More informationWPF PUZZLE GP 2018 ROUND 2. COMPETITION BOOKLET Host Country: Switzerland. ScHWeIZ. ScHWeiz. schweiz. SchWEIZ. SchwEiz. SchWEiZ. schweiz.
WPF PUZZLE GP COMPETITION BOOKLET Host Country: Switzerland Markus Roth, Roger Kohler, Esther Naef Special Notes: CH is short for Confoederatio Helvetica, the Latin name for Switzerland, and appears in
More informationCOCI 2008/2009 Contest #3, 13 th December 2008 TASK PET KEMIJA CROSS MATRICA BST NAJKRACI
TASK PET KEMIJA CROSS MATRICA BST NAJKRACI standard standard time limit second second second 0. seconds second 5 seconds memory limit MB MB MB MB MB MB points 0 0 70 0 0 0 500 Task PET In the popular show
More informationGame Theory and Algorithms Lecture 19: Nim & Impartial Combinatorial Games
Game Theory and Algorithms Lecture 19: Nim & Impartial Combinatorial Games May 17, 2011 Summary: We give a winning strategy for the counter-taking game called Nim; surprisingly, it involves computations
More informationIntroduction to ABB Labs. TA s: Ryan Mocadlo Adam Gatehouse
Introduction to ABB Labs TA s: Ryan Mocadlo (mocad@wpi.edu) Adam Gatehouse (ajgatehouse@wpi.edu) Labs In-depth lab guidelines found on Canvas Must read before coming to lab section Total of 4 Labs: Lab
More information2006 Canadian Computing Competition: Junior Division. Sponsor:
2006 Canadian Computing Competition: Junior Division Sponsor: Canadian Computing Competition Student Instructions for the Junior Problems 1. You may only compete in one competition. If you wish to write
More information