📄 game.cs
字号:
/* Author: Diane Corney
* Date: September, 2007
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace Yahtzee {
public enum ScoreType {
CountOnes, CountTwos, CountThrees, CountFours,
CountFives, CountSixes, SubTotal, SectionABonus, SectionATotal,
ThreeOfAKind, FourOfAKind, FullHouse, SmallStraight, LargeStraight,
Chance, Yahtzee, YahtzeeBonus, SectionBTotal, GrandTotal
}
class Game {
private Player[] players;
private int currentPlayerIndex;
private Player currentPlayer;
private int playersFinished;
private Die[] dice;
private int numRolls;
private MainForm form;
private Player[] playersToRoll;
private bool rollingForFirst;
public const bool ADVANCED = false;
public Game(MainForm form) {
}
public void NextTurn() {
}
public void RollDice() {
}
public void HoldDie(int dieIndex) {
}
public void ReleaseDie(int dieIndex) {
}
public void ScoreCombination(ScoreType combination) {
}
public static Game Load(MainForm form) {
return null;
}
public void Save() {
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -