1 Project 3: Chomp (Not graded). 2 Project 3 The game of Chomp was described in a Math Trek column in Science News:

Slides:



Advertisements
Similar presentations
TA and Sessional / Lecturer PHASE II June – Sept 2011.
Advertisements

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.
11 User Controls II Chapter Objectives You will be able to Create a realistic reusable user control. Use data binding in a user control. Change.
Compress a File & Upload Assignments to Blackboard.
1 Deploying a Web Application. 2 Virtual Directories Web servers map URLs to directories in their file systems. Called virtual directories. Normally one.
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.
Lesson 13: Building Web Forms Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
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.
Moodle (Course Management Systems). Assignments 1 Assignments are a refreshingly simple method for collecting student work. They are a simple and flexible.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
1 Project 4: XML Product Browser (Not Graded). Objectives This project is an exercise of the following knowledge and skills: Accessing and displaying.
Linking Images to Other Areas within a Blackboard Course Darek Sady.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
Fall 2005 Using FrontPage to Enhance Blackboard - Darek Sady1 Using FrontPage to Enhance Blackboard 1.Introduction 2.Starting FrontPage 3.Creating Documents.
Internet Technologies and Web Application Web Services With ASP.NET Tutorial: Introduction to.
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.
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 4.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
Getting Started with Google Forms Sign-in Sheet and Feedback Link
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.
Sports Website Creation. In this project you will design and produce your own website.
Go to your school’s web locker site Your user name is the first letter of your first name, the first four letters of.
11 Project 2 Temperature Conversion (Not graded).
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.
ASP. What is ASP? ASP stands for Active Server Pages ASP is a Microsoft Technology ASP is a program that runs inside IIS IIS stands for Internet Information.
15-Dec-15 Blackboard. Web sites All substantive information about this course is on the course website, 2008/index.html.
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
1-Feb-16 Blackboard. Web sites All substantive information about this course is on the course website,
1 More About HTML Images and Links. 22 Objectives You will be able to Include images in your HTML page. Create links to other pages on your HTML page.
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.
1111 Creating ASPX Controls Programatically Objectives You will be able to Dynamically add controls to a page. Dynamically alter properties of controls.
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.
11 Getting Started with ASP.NET Beginning ASP.NET in C# and VB Chapters 1 and 2.
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.
11 User Controls Beginning ASP.NET in C# and VB Chapter 8.
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 Working with Controls at Run Time. 2 Objectives You will be able to Add controls to a Windows form at run time. Modify controls at run time.
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: 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.
Trick #1: Post Pictures in Discussion Board Blackboard Tips & Tricks Barbara Dent and Susan Beasley Thomas Jefferson High School for Science and Technology.
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 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.
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.
ASP.NET Forms.
Unit 7 Learning Objectives
Services Course 9/9/2018 3:37 PM Services Course Windows Live SkyDrive Participant Guide © 2008 Microsoft Corporation. All rights reserved.
Programming in JavaScript
HP ALM Defects Module To protect the confidential and proprietary information included in this material, it may not be disclosed or provided to any third.
Programming in JavaScript
Programming in JavaScript
Programming in JavaScript
Using and Viewing Homepage
Presentation transcript:

1 Project 3: Chomp (Not graded)

2 Project 3 The game of Chomp was described in a Math Trek column in Science News:

3 The Game of Chomp

5 Assignment Write a web application to permit two players, sharing the same browser, to play Chomp on a grid of 6 rows and 7 columns:

6 Implementation Specifications Each square is a ASPX button. The red square in the lower left corner is disabled. No player can select that square. When a player has no other choice, the other player wins. Players alternate clicking on a blue square. When a player clicks on a square, that square and all squares above it and to its right disappear. A label below the grid says which player is to play next Or which has won. A button below the grid permits the players to start a new game at any time.

7 Example There is a working example at Your app should look approximately the same and have the same behavior.

8 Start of a Game

9 Implementation Tips It's easier to lay out the buttons in the Source View than the Design View. Put one button on the page in Design View. Set its properties in Design View. Then copy, paste, and modify its Source View representation. Put each row of buttons inside...

10 Implementation Tips Name the buttons systematically so that you can determine a button’s row and column from its ID. Example: btn34 for row 3, column 4 Provide a single click handler for all buttons. Use the sender parameter to determine which button was clicked. protected void btn_Click(object sender, EventArgs e) { Button btn = (Button) sender; int clicked_row = int.Parse(btn.ID.Substring(3, 1)); int clicked_col = int.Parse(btn.ID.Substring(4, 1));

11 Implementation Tips To make a button disappear while still occupying its place on the page Set BackColor property to System.Drawing.Color.White; Set BorderStyle property to System.Web.UI.WebControls.BorderStyle.None To make it reappear Set BackColor property to System.Drawing.Color.Blue; Set BorderStyle property to System.Web.UI.WebControls.BorderStyle.Ridge Ensure that an invisible button cannot be clicked.

12 Implementation Tips To find a button with a given ID, use the FindControl() method: String ID = "btn" + i.ToString() + j.ToString(); Button next_button = (Button) FindControl(ID);

13 Submission Submit your web site files via Blackboard Assignments: Default.aspx Default.aspx.cs web.config Zip your web site folder using the Windows “Send to Compressed Folder” command. Attach the.zip file to your Blackboard submission. Be sure to click Attach after selecting the file. Be sure to click Submit after attaching the file.

14 Ground Rules You may work with one or more other students. OK to work alone if you prefer. If you do collaborate All group members are expected to contribute. Each group member should deploy the project to their class web site. Each group member should submit the website files. (This is practice for the graded projects.)

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

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

17 Submission Deploy your application to your directory on the scorpius web site. OK to use a different IIS server if you have access to one. Put the URL for your page into the Blackboard submission comments box. Example: Substitute your user ID for wpusr40. Grader should be able to view your page by copying and pasting the link

18 Due Date Project is due by 11:59 PM, Wednesday, June 6. No late submissions will be accepted. End of Presentation