YOU MUST ONLY USE BASIC ARRAYS TO MODEL THE BOARD STATE

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter7: Designing A Web Form: Creating A Survey Form
Section: Chapter Questions
Problem 3CP4
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
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning