CSC1350Lab09Af17-2.pdf - Laboratory Assignment № 9 Wyatt Clements CSC 1350 Louisiana State University Using 2D Arrays Classes Loops and Methods

CSC1350Lab09Af17-2.pdf - Laboratory Assignment № 9 Wyatt...

This preview shows page 1 - 2 out of 3 pages.

Assignment № 9 Page 1 Laboratory Assignment № 9 Wyatt Clements, CSC 1350, Louisiana State University 11/15/2017 Using 2D Arrays, Classes, Loops, and Methods Tick-Tack-Toe In this laboratory exercise, you will write a program to allow two players to play tick-tack-toe. A game of tick-tack-toe consists of a 3x3 board and one player being an x and the other player being an o . Each player takes a turn putting their x or o in an empty space, and when a player lines 3 in a row they win the game. In this laboratory will have you implement a tick-tack-toe game that will test to see when a player has won. Preliminary Version This version of the program will consist of the following: A. Create a 2D array to act as the tick-tack-toe board. B. Print the current state of the board (Repeat after each player performs their turn) | | ---------------- | | ---------------- | | C. Ask Player what position they want to put their respective symbol D. Continue until all positions have a symbol or there are three of the same symbol in a row E. If a player wins print a statement about that player (1 or 2) winning the game, otherwise print it ended in a stalemate.
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read all 3 pages?

  • Spring '08
  • Blanks

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors