Home
Preface
Chapter
Programming Examples
Homework Problems
Homework Solutions MEA's
Search Useful Links

Homework Solutions

Chapter 8 Homework Solutions

8.1 The game of TicTacToe keeps on playing until the Board is not full and there is no winner on the Board. TicTacToe is the interface to the board.
 
8.2 split.rb
 
8.3 wc.rb
 
8.4 words.rb
 
8.5

NumberPicker.rb

PickANumberOO.rb

PickANumberProcedural.rb

 
8.6

Blackjack.rb

BlackjackRules.rb

Deck.rb

 
8.7

War.rb

WarRules.rb

Deck.rb

 
8.8 A class representing a deck of cards.
 
8.9

Blackjack_9.rb

BlackjackRules_9.rb

Deck.rb

 
8.10 Student Rankings.txt
 
8.11 The variable size needs to be equal to nine and the method board_max_index needs to return eight.
 
8.12 6x6board.rb

6x6tictactoe.rb

9x9board.rb.rb

9x9tictactoe.rb