project completion
This commit is contained in:
19
CardGame/GamePlay1.cpp
Normal file
19
CardGame/GamePlay1.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
#include "include/SqList.h"
|
||||
#include "include/SqQueue.h"
|
||||
#include "include/SqStack.h"
|
||||
#include "FuncRef.h"
|
||||
|
||||
void GamePlay1(SqList<int> PA, SqList<int> PB, int N)
|
||||
{
|
||||
SqStack<int>* Desk = new SqStack<int>; // 牌桌上的牌
|
||||
InitStack(*Desk, N * 2);
|
||||
// 玩法1初始化
|
||||
// 对于玩法1,双方均为先抓到的牌先出,赢的牌加在牌尾
|
||||
SqQueue<int>* QA = new SqQueue<int>;
|
||||
InitQueue(*QA, N);
|
||||
SqQueue<int>* QB = new SqQueue<int>;
|
||||
InitQueue(*QB, N);
|
||||
// TODO
|
||||
}
|
||||
Reference in New Issue
Block a user