project completion

This commit is contained in:
2024-06-11 21:27:07 +08:00
parent 3c9e3debf2
commit eb72f39048
8 changed files with 332 additions and 7 deletions

19
CardGame/GamePlay1.cpp Normal file
View 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
}