1 Project 8: Tic Tac Toe. 2 Assignment Write an HTML and JavaScript page that pemits users to play Tic Tac Toe. Both players use a single browser. Alternating.

Slides:



Advertisements
Similar presentations
JQuery MessageBoard. Lets use jQuery and AJAX in combination with a database to update and retrieve information without refreshing the page. Here we will.
Advertisements

Lesson 12- Unit L Programming Web Pages with JavaScript.
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
1 Project 6: Tic Tac Toe. 2 Tic Tac Toe A Challange Project 10 Points extra credit on final grade OK to work in groups of 2 or 3.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
1 Project 6: Cats in Tree. 2 Project 3: Cats in Tree In this project you will Create a class definition for a Cat class. Populate a BST with Cat information.
1 Project 7: Huffman Code. 2 Extend the most recent version of the Huffman Code program to include decode information in the binary output file and use.
JavaScript Events and Event Handlers 1 An event is an action that occurs within a Web browser or Web document. An event handler is a statement that tells.
JavaScript & jQuery the missing manual Chapter 11
JQuery Page Slider. Our goal is to get to the functionality of the Panic Coda web site.Panic Coda web site.
1 Project 7: My Photo Album Graded Project. 2 Assignment Write a web app to permit users to upload and view photos. User can keep up to five photos on.
Let’s Make An Form! Bonney Armstrong GD 444 Westwood College February 9, 2005.
Advanced Web Design Scripting Tutorial Chapters. Scripting Intro The scripting part of the forthcoming Advanced Web Design textbook introduces you to.
WEEK 3 AND 4 USING CLIENT-SIDE SCRIPTS TO ENHANCE WEB APPLICATIONS.
1 Project 4: XML Product Browser (Not Graded). Objectives This project is an exercise of the following knowledge and skills: Accessing and displaying.
Open Internet Explorer Go to: my.ccsd.net Type YOUR InterAct username and password. Then Submit Query.
Go to your school’s web locker site school name.schoolweblockers.com) Your user name is the first letter of your first name, the first four.
1 Project 4: Vehicle Inventory. 2 Write a program to read a text file containing information about vehicles and output the information First in the order.
Using Client-Side Scripts to Enhance Web Applications 1.
1 Project 3: Chomp (Not graded). 2 Project 3 The game of Chomp was described in a Math Trek column in Science News:
1 Project 5: New Venue. 2 New Venue Based on the posted New Venue scenario 077_Ticket_Booth_Scenarios.pdf.
1 Project 7: Northwind Traders Order Entry. 2 Northwind Order Entry Extend the Select Customer program from Project 6 to permit the user to enter orders.
JavaScript - A Web Script Language Fred Durao
PHP Form Introduction Getting User Information Text Input.
11 Project 2 Towers of Hanoi. 22 Towers of Hanoi is a well known puzzle that can be very difficult to solve manually but can be programmed very easily.
1 Project 5: Printing Address Labels. 2 Assignment Write a Windows forms program to display and print a set of address labels. Input from a csv file.
1 Project 3 The Kumquat Society Conference. 2 Conference Registration In this project you will write a program to handle a conference registration. The.
Project 3: Ticket Printer
4. Events are where it happens! Bear Bibeault Yehuda Katz.
Event Handling (the right way). A Simple Web Page Events - Summary The web page looks like this:
1 Project 2: Using Variables and Expressions. 222 Project 2 Overview For this project you will work with three programs Circle Paint Ideal_Weight What.
1 Project 3 String Methods. Project 3: String Methods Write a program to do the following string manipulations: Prompt the user to enter a phrase and.
1 Project 1: Tickets. 2 Class Ticket Write a definition for class Ticket. A Ticket object corresponds to a physical ticket for a stage show. Attributes.
1 Project 2: Sorting Cats. Write a C++ console application to read a text file containing information about cats and output the information to the screen.
1 Project 4 Address Lookup. Project 4 Write an ASP.NET app that permits users to retrieve addresses from a potentially large list of addresses. There.
1 Project 3: Farey Sequences. 2 Farey Sequences Further details about Farey sequences, and more examples, can be found in the Wikipedia article:
1 Project 7: Looping. Project 7 For this project you will produce two Java programs. The requirements for each program will be described separately on.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
11 Project 2 Temperature Conversion. 22 Project 2: Temperature Conversion Write an ASP.NET Web Forms app to convert temperatures from Fahrenheit to Celsius.
1 Project 5: Leap Years. 222 Leap Years Write a program that reads an integer value from the user representing a year and determines if the year is a.
1 Project 4: Computing Distance. 222 Computing Distance Write a program to compute the distance between two points. Recall that the distance between the.
1 Project 4: Palindrome Detector. 2 Assignment Write a C++ program that reads a line of text from the keyboard and reports to the user whether the text.
1 Project 4: Venue Sort. 2 This project is an exercise in Using C++ strings. Operator overloading. Text File Input.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
1 Project 5 Eyeglass Rx User Control. Eyeglass Rx Earlier in the semester we looked at an eyeglass prescription as an example of an HTML table. 2.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
1 Project 15: Animals Using Derived Classes and Inheritance.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
1 Project 6: New Venue. 2 New Venue Based on the posted New Venue scenario
1 Project 7: Ticket_Booth_0 Using XML. 2 Ticket Booth 0 Base Level 0 of the real Ticket Booth program. Gets information for a single venue from an XML.
1 Project 12: Cars from File. This is an extension of Project 11, Car Class You may use the posted solution for Project 11 as a starting point for this.
1 Project 6: Northwind Orders. 2 The Northwind Traders Database The Northwind Traders database was created by Microsoft for training and demonstration.
Build in Objects In JavaScript, almost "everything" is an object.
A little PHP.
Unit 7 Learning Objectives
Generating Multiple Players Cards February 2017
Human Computer Interaction
© 2015, Mike Murach & Associates, Inc.
Using Arbiter Web address is:
A second look at JavaScript
Programming in JavaScript
Programming in JavaScript
Programming in JavaScript
Programming in JavaScript
Programming in JavaScript
Unit 6 part 6 Test Javascript Test.
Programming in JavaScript
Using and Viewing Homepage
Submit Grades Electronically from MicroGrade Exports
Programming in JavaScript
Presentation transcript:

1 Project 8: Tic Tac Toe

2 Assignment Write an HTML and JavaScript page that pemits users to play Tic Tac Toe. Both players use a single browser. Alternating plays. First player is X. Second play is Y.

Example: Initial Screen 3

X Plays 4

Y Plays 5

X Plays 6

Y Plays 7

X Plays 8

Y Plays 9

X Plays and Wins 10

A Stalemate 11

12 Requirements Your app should match the example in appearance and functionality. Users play by clicking on a blank square. Prevent users from playing on a square that is already taken. Permit users to play on any blank square. Determine when game is over Winner or stalemate.

13 Requirements HTML and JavaScript only No C# code or ASPX controls. Use jQuery where appropriate. Practically everywhere! Use jQuery API rather than DOM API.

Requirements Write a single event handler for click events. Use jQuery to bind each button’s click event to the one event handler. The event argument passed to the handler identifies the button that was clicked. function btnxy_Click(e) {... e.target.id is a JavaScript string that is the id of the button that was clicked. For example “btn23” See

Implementation Tips Remember that the argument to the jQuery $( ) function is a string. Usually a string literal, as in $('#input_box') Can be a variable, or the result of a concatenation, as in $('#' + e.target.id) 15

Implementation Tips Keep it simple. Work in tiny steps. Get each step to work correctly before going to the next step. Use alerts or breakpoints to see what is happening. Before starting to write code Review the presentations on the class web site. Be sure you understand the examples. Think about what is needed and how to get there in small steps. 16

Implementation Tips Everything you need to do, or something very similar, has appeared in examples presented in class. Use what you have seen in this course. 17

18 Ground Rules You may work with one or two other students. OK to work alone if you prefer. If you do collaborate All group members are expected to contribute. Only one group member should submit the website files in Canvas. Include a comment with the names of all group members. Other group members submit just a comment with the names of all group members.

19 Submission Submit your web site folder via Canvas. Zip your web site folder using the Windows “Send to Compressed Folder” command. Submit the.zip file

20 Ground Rules Do not share your work with other students (outside your group.) Before or after submitting the project. OK to discuss the project. Do not copy any other student’s code. Or even look at it. Do not let anyone copy or examine your code.

21 Ground Rules Except for code posted on the class web site and jquery.com Do not copy code from the Internet or any other source. Write your own code.

22 Due Date Project is due by 11:59 PM, Wednesday, April 20. Project submitted after the deadline will be subject to a penalty of 10 points per hour. End of Presentation