CPS 196 week 14

CPS 196 week 14 - CPS 196 week 14 MAKE-UP EXAM until you...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CPS 196 week 14 MAKE-UP EXAM until you submit term project TERM PROJECT: Tic Tac Toe 3x3 to 9x9 must write comment on how function works include <stdio.h> include <stdlib.h> include <time.h> include <conio.h> void show_board (int size, char ttt[10]) { int row; int column //show column heading printf( ); for column= 1; column <=size; column++) { printf( %d , column);. } printf(\n); //show first line of table printf( +) for column= 1; column <=size; column++) 1. ask fro size of the game 2. ask for number of players (?) 3. show the board _ _ _ +---+---+---+ _ _ _ |_ _ _|_ _ _|_ _ _| _ _ _ |_ _ _|_ _ _|_ _ _| _ _ _ |_ _ _|_ _ _|_ _ _| _ _ _ +---+---+---+ //first line int row, column; printf( +); for column= 1; column <size; column++) { print f(---+); } printf (\n); for (row=1; row<=size; row++) { printf(| ); } printf (\n); char ttt [10][10] //two dimensional character, [row][column] ttt[2][3]= X; ttt[1][3]=O; week 14 part deuces...
View Full Document

Page1 / 5

CPS 196 week 14 - CPS 196 week 14 MAKE-UP EXAM until you...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online