feup_iart's Introduction
Pivit.py PT Compliação/Execução O jogo foi escrito em python3(.7) e portanto não é compilado. No entanto, o jogo utiliza a biblioteca PyGame para representar os gráficos e portanto esta deve ser instalada para correr o programa. Para executar o jogo basta correr na linha de comandos: python3.7 pivit.py Utilização Após executar o script, será pedido ao utilizador que insira na linha de comandos: 1. Modo de Jogo (1 -> PvP | 2 -> PvE | EvE) 2. Profundidade de Pesquiza do Algoritmo Minimax 3. Defenições da Heurística da IA (+ Agressivo vs + Defensivo) 3.1 No caso do modo de jogo ser EvE, pode-se decidir se a IA sabe que Heurística o seu oponente corre, ou não. Depois a janela de jogo abrirá. -> Para jogar clique numa peça sua, e depois na posição que para a qual se quer mover. -> Para selecionar outra peça, o jogador deve primir tecla 'R', e poderá depois selecionar outra peça para jogar. -> Para pedir apoio à IA, primir 'D'. -> Para desistir do jogo primir 'F'. -> Para sair do jogo basta carregar na tecla 'Q'. EN Compiling/Executing The game is written in python3(.7), and so it is not compiled. The game however, uses the external PyGame library to display the gafic and so this library must be installed to run the program. To execute the script simply write the following in the command line: python3.7 pivit.py Usage After executing the script, the user will be prompted to insert the following configuration options in the command line: 1. Game Mode (1 -> PvP | 2 -> PvE | EvE) 2. Depth of Minimax Search 3. AI Heuristic (+ Agressive vs + Defensive) 3.1 If the mode selected is EvE, one must decide if the AI knows which Heuristic it's opponent is running. Following that, the game window will open -> To play, using the mouse, select the piece you want to move, then click the square you want to move it to. -> To select another piece, press 'R'. -> To ask the AI for help, press 'D'. -> To forfeit the match press 'F'. -> To exit the game simply press 'Q'.
feup_iart's People
Forkers
pedrocarmopereiraRecommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.