Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Tic tac toe flowchart design

30/11/2021 Client: muhammad11 Deadline: 2 Day

CSE 113 Lab 5 Due: December 8, 2016 11:59 PM Objective: Create Tic Tac Toe Prelab: Read through pages 512-516 of your book, you will need to use those examples to be successful with this lab. Create a flowchart for the implementation of the tic-tac-toe game human vs human version. You will be required to show this to your TA at the start of your first lab section for this lab and get a sign off (5% of your lab grade). Problem Context In this Lab, we want to design the Tic Tac Toe game. Along with developing a User Interface (UI) which allows a human player to use mouse-clicks to play the game, we will also develop a simple AI that will play against the human player. Before we begin, if you are not farmiliar with the game, or want to play for fun, you can play this game online by visting http://playtictactoe.org/ Problem Statement You are required to build the classic tic tac toe game on a 3x3 board that allows one human player to play against another player (human or simulated by a simple AI, with 2 levels of difficulty you can select from). This is a 2-​player game. Each player is assigned a symbol: X or O. The game board is divided into cells. Each cell has three states. It can either be empty, hold a cross (X), or a circle (O). The players can put one symbol at a time in one of the empty cells. The players take alternate turns to put the symbols on the board. The goal for each player is to get the assigned symbols in one of the winning configurations. If three instances of the same symbol occur next to each other without the other symbol in between is considered a winning configuration. The three occurrences can be arranged either in any of one of the rows or the columns or any of the diagonals of the square board. Figures below show the board UI at the end of game play and some possible winning configurations. In the Human v. Human version it should say Player 1 or Player 2 wins.

Implementation Details Game UI and interface

● Use a sketch size of 300 x 350 ● Dive the 300 x 300 area into 9 cells (3 rows and 2 columns) ● To get the cells, draw vertical lines and then horizontal lines ● Use a 2​D array of size 3x3 to keep the board’s current state. You can use a integer array

with numbers assigned to each state. E.g., 0:EMPTY; 1:CROSS; 4:CIRCLE ● Initialize this array will all 0’s ● Select which version of the game you are playing : Human v. Human, AI Easy, AI

Advanced. All options must be available, and a message should appear if an invalid option is selected. Use the “Button” Class from the example starting on page 515 of your book to help with this. This figure below is an example of what it could look like.

● When a click is made on one of the empty cells, draw an appropriate game piece, and

update the corresponding entry in the 2​D array ● After every move, scan the entire board and check for winning conditions ● Provides some message at the end of who wins ● Has some option to start a new game/reset when the game is complete

Version 1 Human vs Human: For this version follow the implementation details and demonstrate your functionality by playing a round against another human. It should have some way to tell whose turn it is. Only the Human v. Human will work, the other two options will give a message saying to pick a different game version. Version 2 AI Difficulty Easy:

● The human player is always assigned the X symbol while the AI/Computer is assigned the “O” symbol.

● We will design a very simple AI that will play against the human player. It just places an O randomly in any one of the empty cells. It does not make any meaningful offensive moves.

● Only the Human v. Human and AI Easy will work, the other option will give a message saying to pick a different game version.

● There is no demonstration for this part. Version 3 AI Difficulty Advanced:

● Extra credit version - 20 points ● All 3 game play options will work ● We will design a very simple AI that will play against the human player. It will be just a

defensive UI. It will try to block an attempt by the human player to get three symbols in a winning configuration. It checks after every player move if there is any combination of two X’s on the board that could possibly lead winning configuration (of three X’s) in the next move. If any such configurations are detected, it places an O in the empty slot so to avoid the winning configuration. Otherwise, it just places an O randomly in any one of the empty cells. It does not make any meaningful offensive moves.

To check for attempts from the human player that need to be blocked, follow this simple algorithm:

● Check each row if it has two X’s and one empty cell ● Check each column if it has two X’s and one empty cell ● Check the main diagonal if it has two X’s and one empty cell ● Check the alternate diagonal if it has two X’s and one empty cell

There is no demonstration for this part. Submission: Submit on UBLearns all files zipped together in one zip file including your sign off sheet. Demo to TA for sign off for the human v human version.

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Engineering Help
Engineering Mentor
24/7 Assignment Help
A Grade Exams
Write My Coursework
Accounting & Finance Master
Writer Writer Name Offer Chat
Engineering Help

ONLINE

Engineering Help

I will be delighted to work on your project. As an experienced writer, I can provide you top quality, well researched, concise and error-free work within your provided deadline at very reasonable prices.

$41 Chat With Writer
Engineering Mentor

ONLINE

Engineering Mentor

I have read your project details and I can provide you QUALITY WORK within your given timeline and budget.

$29 Chat With Writer
24/7 Assignment Help

ONLINE

24/7 Assignment Help

Being a Ph.D. in the Business field, I have been doing academic writing for the past 7 years and have a good command over writing research papers, essay, dissertations and all kinds of academic writing and proofreading.

$41 Chat With Writer
A Grade Exams

ONLINE

A Grade Exams

As an experienced writer, I have extensive experience in business writing, report writing, business profile writing, writing business reports and business plans for my clients.

$26 Chat With Writer
Write My Coursework

ONLINE

Write My Coursework

I have read your project details and I can provide you QUALITY WORK within your given timeline and budget.

$22 Chat With Writer
Accounting & Finance Master

ONLINE

Accounting & Finance Master

After reading your project details, I feel myself as the best option for you to fulfill this project with 100 percent perfection.

$49 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Hw - Business Intellg (Dis) - RANDBURG ABORTION CLINIC 0717852514 ABORTION PILLS FOR SALE IN HAMMANSKRALL, RUSTENBURG, MAHIKENG, BLOEMFONTEIN, MAMELODI, WITBANK, ARCADIA, PRETORIA, SHOSHANGUVE - Reaction Paper - The mean value of land and buildings per acre - Century 800lm ip44 dim white and warm white downlight - The Stanford Prison Experiment - Concrete pump operator training - Montague and capulet fight newspaper article - Book and Article questions - Spinal cord injury case study - Of mice and men dreams - Respondus lockdown browser password - History source analysis scaffold - Crookston castle secondary school - Fill in the Blanks week 3 worksheets - Writing an informative speech - Child safety practice manual - Anthony kiedis personality type - Ic 400 pro mods - Contemporary management techniques - What is the competitive advantage of jeep cherokee - N in nernst equation - The danger of a single story by Chimamanda Ngozi Adichie - RESEARCH METHODOLOGIES AND INQUIRY - Little red riding hood thesis - Answer the following questions - Somewhere in outer space god has prepared a place - A21 fault on worcester boiler - Case Study - Http video realviewtv com education whitefieldacademy - Owa qub ac uk - Discoverer of dynamite crossword - Ieee journal of the electron devices society - Database management system - In a diversified company the strategy making hierarchy consists of - How to draw a lava lamp - How to study for english hsc - Personal assessment of management skills pams - What challenges did mary face - Health Promotion & Disease Prevention in Older Adults - Capacity of iconic and echoic memory - Romeo and juliet prologue poetic form - Human Research Paper - Introduction to modern climate change andrew dessler - Data Mining : Answer the following questions. Please ensure to use correct APA7 references and citations with any content brought into the assignment. - Dream dreams and see visions - Ezbib com - Excel qm for windows - Color based object detection opencv python - How does social media impact the news - Compensation Strategies, Best Practices, and Challenges Presentation - Personal responsibility paper - 2015 practice test 1 psat nmsqt answers - Iphone 6 plus upgrade program - Life Purpose Based on Christian Authors - Social Work- Safety and Agency Responsibility - Kellys plaice north walsham - Nova mind of a rampage killer worksheet answers - Is 0 0 an x intercept - Walmart chapter tension pole shower caddy instructions - History 10 - Mackillop family services wollongong - Trevor noah place of gold - 3.1&3.2 Discussion: Devotional Reflection-Children of Light-Transparency & Borland Case Final Response - Obtain activation code nessus - Case 45 jetblue airways ipo valuation - Carrefour case study answers - Job instruction sheet for counter person - Marketplace simulation login - Daliye - Nitrogen kick off calculation - Clerkseat building royal cornhill hospital - Ira steven behr blue beard - In formulating hypotheses for a statistical test of significance, the null hypothesis is often - Essay - Gold standard - Security architecture - Chief complaint nursing care plan - Periodic table lab report - How painful was foot binding - Chcdiv002 assessment 3 answers - Julius caesar act 1 scene 1 study guide answers - Ion boardroom theme word 2016 - Organizational Leadership - Reflection and refraction lab report answers - How many minutes is 2.3 hours - Scania truck fault codes - Assignment - Umr claims mailing address - How to calculate enthalpy change of neutralisation - The singular form of villi - Evaporation and intermolecular attractions lab answers - Example of a Randomized Clinical Trial” (Nyamathi et al.,2015), - Gram staining experiment lab report - Helicopter experimental design - Sydney water backflow web lodgement - Markham park shooting range - Base extraction of benzoic acid from acetanilide recrystallization of products - I have a spelling checker poem corrected