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
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%](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F711c4cd7-97bb-44c7-b2e2-57701fb6ccc6%2Fbee3bc5d-4549-4ce5-8c50-9bb77ad1e9d1%2Fk4pog5_processed.png&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
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)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
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)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education