This file contains 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
#include <iostream> | |
#include <vector> | |
#include <string> | |
#include <ctime> | |
#include <cstdlib> | |
#include <iomanip> | |
using namespace std; | |
class bot{ | |
int side; // 1 is good -1 is bad | |
int character; // 1 is merlin 2 is servant of merlin 0 is assassin -1 is mondred -2 is servant of mondred |
This file contains 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
#include <iostream> | |
#include <vector> | |
#include <string> | |
#include <ctime> | |
#include <cstdlib> | |
#include <iomanip> | |
using namespace std; | |
class bot{ | |
int side; // 1 is good -1 is bad | |
int character; // 1 is merlin 2 is servant of merlin 0 is assassin -1 is mondred -2 is servant of mondred |
This file contains 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
#include <iostream> | |
#include <vector> | |
#include <string> | |
#include <ctime> | |
#include <cstdlib> | |
#include <iomanip> | |
using namespace std; | |
class bot{ | |
int side; // 1 is good -1 is bad | |
int character; // 1 is merlin 2 is servant of merlin 0 is assassin -1 is mondred -2 is servant of mondred |
This file contains 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
void Avalon::chooseplayer(int numberofplayer,Avalon ¤tplayer,int votephase1count){ | |
int n; char vote; bool pass =0; | |
if(player.king==1)//if player are king | |
{ | |
do{ | |
if(votephase1count ==5) // In case of decline 5 time | |
{ | |
return calscore('B'); |
This file contains 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
#include <iostream> | |
#include <vector> | |
#include <string> | |
#include <ctime> | |
#include <cstdlib> | |
#include <iomanip> | |
using namespace std; | |
class bot{ | |
public: |
This file contains 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
#include<iostream> | |
#include<vector> | |
#include<cstdlib> | |
#include<iomanip> | |
#include<ctime> | |
#include<algorithm> | |
#include"Structure.h" | |
using namespace std; | |
This file contains 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
else if(bot1/แก้เป็นbot2/.king ==1){ | |
vector<int> random; | |
int temp=99; | |
if(system.checkturn==1){ | |
for(int i=0 ;i<2 ;i++) { | |
int random=rand()%players +1; | |
while(temp==random){ | |
random=rand()%players +1; | |
} | |
This file contains 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
#include<iostream> | |
#include<vector> | |
#include<cstdlib> | |
#include<iomanip> | |
#include<ctime> | |
#include<algorithm> | |
#include"Structure.h" | |
using namespace std; | |
void Approveordecline_bot(); |
This file contains 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
#include <iostream> | |
#include <vector> | |
#include <string> | |
#include <ctime> | |
#include <cstdlib> | |
#include <iomanip> | |
using namespace std; | |
class bot{ | |
public: |
This file contains 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
#include<iostream> | |
#include<vector> | |
#include<cstdlib> | |
#include<iomanip> | |
#include<ctime> | |
#include<algorithm> | |
#include"Structure.h" | |
using namespace std; | |
void Approveordecline_bot(); |
OlderNewer