Last active
August 22, 2016 11:31
-
-
Save denispeyrusaubes/dd06efb8abf7f0ec704e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Constant.h | |
// Chess | |
// | |
// Created by Denis Peyrusaubes on 20/09/2015. | |
// Copyright © 2015 Retengr. All rights reserved. | |
// | |
#ifndef Constant_h | |
#define Constant_h | |
typedef NS_ENUM(NSInteger, ChessColor) { | |
ChessColorWhite, | |
ChessColorBlack | |
}; | |
typedef NS_ENUM(NSInteger, ChessPiece) { | |
ChessPieceKing, | |
ChessPieceQueen, | |
ChessPieceKnight, | |
ChessPiecePawn, | |
ChessPieceRook, | |
ChessPieceBishop | |
}; | |
#endif /* Constant_h */ |
Author
denispeyrusaubes
commented
Aug 22, 2016
•
import Cocoa
enum ChessPiece:String {
case king="K";
case queen = "Q"
case pawn = "P"
case bishop = "B"
case knight = "N"
case rook = "R"
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment