<commit_before>//
//  BattleMode.swift
//  Emoji Tac Toe
//
//  Created by <NAME> on 1/24/18.
//  Copyright © 2018 Epic Loot. All rights reserved.
//

import Foundation

enum BattleModeAttack: Int {
    case meWin = 0
    case youWin = 1
    case takeAllCorners = 2
    case takeAllMiddles = 3
    case switchLocations = 4
    case jumpToCenter = 5
    case mixUp = 6
    case wipeOut = 7
}

class BattleMode {
    
    enum AttackRank: Int {
        case instantWin = 1
        case nearlyInstantWin = 2
        case mixerUpper = 3
    }
    
    struct attackNames {
        static let meWin = "Me Win"
        static let youWin = " You Win"
        static let takeAllCorners = "Take All Corners"
        static let takeAllMiddles = "Take All Middles"
        static let switchLocations = "Swap Places"
        static let jumpToCenter = "Take Center"
        static let mixUp = "Mix It Up"
        static let wipeOut = "Wipe Out"
    }
    
    var activePlayer: PlayerRole
    var currentGameboard: Gameboard
    var attackList: [[BattleModeAttack]]
    
    init(activePlayer: PlayerRole, currentGameboard: Gameboard) {
        self.activePlayer = activePlayer
        self.currentGameboard = currentGameboard
        self.attackList = [[BattleModeAttack]]()

        createAttackList()
    }
    
    fileprivate func createAttackList(){
        
        let rank1Attacks:[BattleModeAttack] = [.meWin, .youWin]<commit_msg>Better names for Battle Mode Attacks<commit_after>//
//  BattleMode.swift
//  Emoji Tac Toe
//
//  Created by <NAME> on 1/24/18.
//  Copyright © 2018 Epic Loot. All rights reserved.
//

import Foundation

enum BattleModeAttack: Int {
    case meWin = 0
    case youWin = 1
    case takeAllCorners = 2
    case takeAllMiddles = 3
    case switchLocations = 4
    case jumpToCenter = 5
    case mixUp = 6
    case wipeOut = 7
}

class BattleMode {
    
    enum AttackRank: Int {
        case instantWin = 1
        case nearlyInstantWin = 2
        case mixerUpper = 3
    }
    
    struct attackNames {
        static let meWin = "Untouched Is Mine"
        static let youWin = "Untouched Is Yours"
        static let takeAllCorners = "Take All Corners"
        static let takeAllMiddles = "Take All Middles"
        static let switchLocations = "Swap Places"
        static let jumpToCenter = "Take Center"
        static let mixUp = "Mix It Up"
        static let wipeOut = "Wipe Out"
    }
    
    var activePlayer: PlayerRole
    var currentGameboard: Gameboard
    var attackList: [[BattleModeAttack]]
    
    init(activePlayer: PlayerRole, currentGameboard: Gameboard) {
        self.activePlayer = activePlayer
        self.currentGameboard = currentGameboard
        self.attackList = [[BattleModeAttack]]()

        createAttackList()
    }
    
    fileprivate func createAttackList(){
        
        let rank1Attacks:[BattleModeAttack] = [.meWin, .youWin]
{'fraction_non_alphanumeric': 0.0759144237405107, 'fraction_numerical': 0.014492753623188406, 'mean_word_length': 2.2831257078142695, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6294950', 'n_tokens_mistral': 926, 'n_tokens_neox': 870, 'n_words': 272}