<commit_before>require 'artii'

module MenuView
  def self.welcome
    welcome = Artii::Base.new :font => 'rounded'
    puts welcome.asciify("welcome")
    puts welcome.asciify("to")
    puts welcome.asciify("pawn")
    puts welcome.asciify("shop")
    puts welcome.asciify("chess")
    puts "Enter 'new' for new game or 'load' for a saved game"
  end

  def self.user_messed_up
    puts 'I did not understand what you wanted. Please re-enter your choice:'
    puts "'New' or 'Load'"
  end
  def self.user_input
    gets.chomp.downcase
  end
end

PLAYER = ["White", "Black"]

module ControllerView
  def self.print(output)
    puts output
  end

  def self.clear_terminal
    system 'clear'
  end

  def self.get_user_piece
    puts "What piece would you like to move?"
    gets.chomp.downcase
  end

  def self.get_user_target
    puts "Where would you like to move?"
    gets.chomp.downcase
  end

  def self.begin
    puts "Would you like to start? White moves first."
    gets.chomp.downcase
  end

  def self.turn
    player = PLAYER.rotate!
    puts "#{player.first} may go."
  end

  def self.continue
    puts "Would you like to continue?"
  end
<commit_msg>added save option after continue<commit_after>require 'artii'

module MenuView
  def self.welcome
    welcome = Artii::Base.new :font => 'rounded'
    puts welcome.asciify("welcome")
    puts welcome.asciify("to")
    puts welcome.asciify("pawn")
    puts welcome.asciify("shop")
    puts welcome.asciify("chess")
    puts "Enter 'new' for new game or 'load' for a saved game"
  end

  def self.user_messed_up
    puts 'I did not understand what you wanted. Please re-enter your choice:'
    puts "'New' or 'Load'"
  end
  def self.user_input
    gets.chomp.downcase
  end
end

PLAYER = ["White", "Black"]

module ControllerView
  def self.print(output)
    puts output
  end

  def self.clear_terminal
    system 'clear'
  end

  def self.get_user_piece
    puts "What piece would you like to move?"
    gets.chomp.downcase
  end

  def self.get_user_target
    puts "Where would you like to move?"
    gets.chomp.downcase
  end

  def self.begin
    puts "Would you like to start? White moves first."
    gets.chomp.downcase
  end

  def self.turn
    player = PLAYER.rotate!
    puts "#{player.first} may go."
  end

  def self.continue
    puts "Would you like to continue?"
    puts "If not, you may 'save' or 'exit'."
  end

{'fraction_non_alphanumeric': 0.09432387312186978, 'fraction_numerical': 0.0, 'mean_word_length': 2.9554455445544554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2024009', 'n_tokens_mistral': 800, 'n_tokens_neox': 821, 'n_words': 264}