YOU MUST ONLY USE BASIC ARRAYS TO MODEL THE BOARD STATE

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

YOU MUST ONLY USE BASIC ARRAYS TO MODEL THE BOARD STATE

W AutoSave
C 5
File Home Insert Draw Design Layout
X
Paste
Undo Clipboard
Off
Page 2 of 3 430 words
COMP2080 Assignment 2 - Compatibility Mode ✓
Calibri (Body)
BIU ab
Ix English (Canada)
14
X₁₂ X
Font
References Mailings Review View Help Acrobat
A A Aa
A
A
↓ T
Paragraph
Search
Text Predictions: On
Normal
No Spacing 1 Heading
Styles
Bonus:
Add the option for two human players
Accessibility: Good to go
N
1.1 Project Steps
create a fully working intelligent Tic-Tac-Toe command line game using Java. The game must
allow the user to select the difficulty of the Al to play against. There must be two (2) choices:
Weak or Intelligent.
This logic must be implemented using the two strategies outlined below.
Editing
Weak Al:
This must be implemented using a randomized approach. In this approach, the computer
selects a random available position on the board and plays there.
Intelligent Al:
This must be implemented using the Minimax algorithm. The computer must examine the
game state at each point and deduce the optimal (best) play that can be made
A detailed overview of the Minimax algorithm can be found here:
https://www.youtube.com/watch?v=zp3VMe0Jpf8
Create and Share Request
Adobe PDF Signatures
The Game should operate as follows:
1) The Human player should be asked their name
2) The player must be prompted to choose their symbol ('X' or '0')
3) The player should then choose to play against the weak or intelligent Al
4) The player should be able to choose if the computer will go first or the player will go first
5) The present board state will be displayed and:
5.1 If the computer is to play, It will now show the board updated with the computer's
symbol
5.2 If it is the player's turn, the player will be prompted for a row and column location to
play.
6) The board will then be checked for a winning state or draw and if it is not in a winning state
or draw, go to step 5 otherwise display the winner or declare a draw.
Tafadzwa Marisa
Adobe Acrobat
Focus
0
Comments
Voice
QE
Dictate Editor Reuse
Files
Editor
Editing
€
V
Reuse Files
Share
+
100%
Transcribed Image Text:W AutoSave C 5 File Home Insert Draw Design Layout X Paste Undo Clipboard Off Page 2 of 3 430 words COMP2080 Assignment 2 - Compatibility Mode ✓ Calibri (Body) BIU ab Ix English (Canada) 14 X₁₂ X Font References Mailings Review View Help Acrobat A A Aa A A ↓ T Paragraph Search Text Predictions: On Normal No Spacing 1 Heading Styles Bonus: Add the option for two human players Accessibility: Good to go N 1.1 Project Steps create a fully working intelligent Tic-Tac-Toe command line game using Java. The game must allow the user to select the difficulty of the Al to play against. There must be two (2) choices: Weak or Intelligent. This logic must be implemented using the two strategies outlined below. Editing Weak Al: This must be implemented using a randomized approach. In this approach, the computer selects a random available position on the board and plays there. Intelligent Al: This must be implemented using the Minimax algorithm. The computer must examine the game state at each point and deduce the optimal (best) play that can be made A detailed overview of the Minimax algorithm can be found here: https://www.youtube.com/watch?v=zp3VMe0Jpf8 Create and Share Request Adobe PDF Signatures The Game should operate as follows: 1) The Human player should be asked their name 2) The player must be prompted to choose their symbol ('X' or '0') 3) The player should then choose to play against the weak or intelligent Al 4) The player should be able to choose if the computer will go first or the player will go first 5) The present board state will be displayed and: 5.1 If the computer is to play, It will now show the board updated with the computer's symbol 5.2 If it is the player's turn, the player will be prompted for a row and column location to play. 6) The board will then be checked for a winning state or draw and if it is not in a winning state or draw, go to step 5 otherwise display the winner or declare a draw. Tafadzwa Marisa Adobe Acrobat Focus 0 Comments Voice QE Dictate Editor Reuse Files Editor Editing € V Reuse Files Share + 100%
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education