GithubHelp home page GithubHelp logo

ericmp33 / la-brisca-cli Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 429 KB

The CLI version of the classic board game of "La Brisca".

License: GNU General Public License v3.0

Java 100.00%
java la-brisca ai game-development

la-brisca-cli's Introduction

la-brisca-cli🕹️🖥️👨‍💻

Welcome to the command line interface version of the classic board game of "La Brisca", programmed with Java 16. Made by @ericmp33. ✔️

What is "La Brisca"?💡

"La Brisca" is a popular cards game in a lot of Mediterranean countries, such as Catalonia, Italy, France, Portugal, Croatia, Slovakia... Also is present in Center and South America.

  • For being able to play it and to understand how the game works🤔, it's aim and more information I recommend you to check https://en.wikipedia.org/wiki/Brisca and also to search on the Internet.

  • If you know Catalan, you can play in Catalan😃! When the game starts, it asks in which language you want to play.

Simple instructions📄

  • ⚠️IMPORTANT⚠️❗ You should use a terminal that supports colorized ASCII characters, so you will see the prints colorized and all will be more readable! If you are on Windows I recommend you the new Windows Terminal.

  • To execute the game get Java☕ - 16 or newer version. Then download the game here. Execute the file via terminal inputting java -jar ./la-brisca-cli.jar, where . is the current folder, which contains the jar.

  • The game can have multiple players, but in this case I chose the 2-players version. I created a bot, so you can play against it.

  • When the game starts, you'll be asked about 2 things. The gamemode and the bot's AI.

Gamemode:

If u choose the default gamemode, you won't be able to see the cards of the bot. Default mode acts like real life default's game mode, where you can't see opponents cards.

Otherwise, if u choose the "hacker" mode, you'll be able to see bot's in-hand cards and other information👀.

Bot's AI:

If you enable it, the bot will be able to throw the cards "thinking" properly🧠. Otherwise, it will throw a random card🤖🤪.

Game preview

Game start (enabling AI and setting hacker mode):



Round (normal mode):



Round (hacker mode):



AI changing last card (7 of trump):



la-brisca-cli's People

Contributors

ericmp33 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.