bug fixes on tic tac toe, inheritance modeling, mastermind

This commit is contained in:
Mikayla Dobson
2023-05-29 21:36:27 -05:00
parent d41ec1b5ee
commit fdb5b211b3
11 changed files with 99 additions and 39 deletions

16
mastermind/Game.rb Normal file
View File

@@ -0,0 +1,16 @@
require_relative "../common/GameBase.rb"
class Game < GameBase
def initialize
puts "Welcome to Mastermind!"
puts "Player 1, what is your name?"
player_one_name = gets.chomp
puts "Player 2, what is your name?"
player_two_name = gets.chomp
@playerOne = Player.new(player_one_name)
@playerTwo = Player.new(player_two_name)
@statusMessage = ""
end
end