A downloadable game for Windows

Buy Now1.00€ EUR or more

TRESETTE

I developed a software of Artificial Intelligence using Visual C++: an italian card game called "tresette".

You are the player one, but three players are managed by computer. The player 3 is your partner. It's a game between  2 teams: team A ( player1 + player3 ) vs team B (player2 + player4) .

Then 4 players: 1 human (you) and other 3 players ...

The dealer shuffles and deals 10 cards to each player. Turn to deal passes to the right after each hand.

The first player plays a card: the others must play the same suit if they can, otherwise, they can play any card. The play is counterclockwise.

The italian card deck, 40 cards, is divided into 4 suits:

SUITS IMAGES EXAMPLE
COINS (in it. "denari") for example 3 cards of "coins": three, ace, king (10)
CLUBS  (in it. "bastoni") for example 3 cards of "batons": the ace, knight (9), seven
CUPS  (in it. "coppe") for example 3 cards of "cups": two, knight (9), five
SWORDS  (in it. "spade") for example a card of "swords":   two

At begin the PC sends you the following message: "Considero i punti del BONGIOCO?". So you can choose between two mode:

press "ok"   -->  BONGIOCO mode 

press "Annulla"  --> NO BONGIOCO mode.

Both modes is an automatic function.

In "BONGIOCO" mode you must check your initial cards : have you got  some combinations of 3 cards (see screenshot) ?

What's a card combination?

if you have 3 "aces" you add  3 points to score:


With 3 cards "two" (see the screenshot) you add 3 points too.

3 cards "three" adds 3 points. 

Finally there is a combination called "napoletana": a card Ace + card 2 + card 3 with same suit:


Ace of Cup+ 2 of Cup + 3 of Cup

It adds 3 points.

In "NO BONGIOCO" mode no adding points to score.


MESSAGES

The communication with your partner is important. There are some techniques based on messages.

 If you play as first you can  leave a message  ( in italian language, automatic function):

"BUSSO" -> you have got one of  following cards: 2 or 3.

"Ho il 25" -> you have got both cards  2 and 3.

"Gioco lungo" ->  you have a great number  of cards with this suite

"Asso" -> you have the ACE

"Volo" -> you have no more cards with that suit.

"CARTA BUONA" -> your card is  ok ("good"): it's the highest and it will take the hand.

"torno" ->after  this "good" card  you 'll play other card with same suit.

"ne ho ancora 2" -> you have others 2 cards with the same suit

The card rankings is the following, from high to low: 

CARD RANKINGS

3  - 2 - Ace(1) - king(10) -    knight(9) - knave(8)

7 - 6 - 5 - 4

3 takes all other cards; then there are the 2, the Ace, the king (10), the knight (9), the knave (8), 7, 6, 5, 4. But the ace is the most important card for his value (the highest): 

CARD VALUES

ACE = 1 point

3, 2, 10, 9, 8 = 1/3 point 

7, 6, 5, 4 = zero point.

For example if you take the following cards: 3, 10, 8, 5, the score is the following: 

1/3 + 1/3 + 1/3 + 0 = 1 point

Other example: if you take the following cards: ACE, 7, 10, 4, then the score is the  following:

1 + 0 + 1/3 + 0 = 1 + 1/3 points

The last trick is worth 1 point. 

You win if your score is 41 pts.

-------------------------------------------------------------

IN ITALIAN LANGUAGE:

TRESETTE

Sono un ingegnere informatico ed ho sviluppato un software di A.I. per il gioco del tresette. 

Infatti 3 giocatori sono "manovrati" dal PC, mentre c'è un unico giocatore,  "player one", gestito da te.

Il tresette è un classico gioco di carte, conosciuto  in tutta Italia.

Si gioca tra 4 persone, ma ognuno è in coppia col giocatore che ha di fronte. Il mazziere mischia le carte e ne distribuisce 10 ad ogni giocatore, seguendo il senso antiorario. Il primo alla destra del mazziere gioca la prima carta; seguono gli  altri in senso antiorario. Questi hanno l'obbligo di giocare una carta con lo stesso seme di quella giocata dal primo: se non ne hanno possono sceglierne una qualsiasi. Alla fine del giro si stabilisce chi prende le 4 carte giocate, seguendo le gerarchie  descritte successivamente.

In ogni mano chi gioca per primo può lasciare un messaggio per il compagno; i possibili messaggi sono:

busso -> ho il tre oppure il due.

Ho il 25 -> ho sia il 2 che il 3 ( quindi chiedo l'asso)

Volo -> non ho più carte con quel seme

Lungo -> ho molte carte con quel seme (a volte è compreso l'asso)

CARTA BUONA -> questa carta prende sicuramente la mano 

torno -> dopo questa carta buona ne giochero'  un' altra con stesso seme

Ne ho ancora 2 -> ho altre 2 carte con stesso seme


All'inizio ti viene chiesto se vuoi conteggiare o meno anche i cosiddetti "bongiochi" nel punteggio totale; questi sono particolari combinazioni di carte, presenti nelle carte di ogni giocatore, e vengono dichiarato all'inizio:

NAPOLETANA (vale 3 punti): Se hai amsso, due e tre dello stesso seme dichiari la napoletana. Ad es. Asso,due,tre di coppe è la napoletana a coppe. 

TRE 3 (ancora tre pts.): se hai tre carte che sono i 3 di semi diversi lo dichiari specificando il seme mancante.

TRE 2 (tre pts ) : se hai tre carte che sono i 2 di semi diversi lo dichiari specificando il seme mancante.

TRE ASSI (tre pts): se hai tre carte che sono assi di semi diversi lo dichiari specificando il seme mancante.

Analogamente per:

 4 tre: vale quattro punti.

4 due: ancora 4 punti.

4 assi: quattro punti.

Vince la coppia che per prima totalizza 41 punti. 

Le carte hanno i seguenti valori: 


VALORI CARTE

Asso=1 punto; 

3, 2, RE, CAVALLO, FANTE = 1/3 di punto

(cioè per fare un punto intero occorrono 3 di queste carte).

4, 5, 6, 7 = zero punti


GERARCHIA PER LA PRESA

Ma attenzione! La gerarchia delle carte (che stabilisce la presa) non rispetta la scala dei punteggi: infatti la carta più alta (che può prendere tutte le altre) è il 3 che vale meno dell'asso. Quindi la gerarchia per la presa è  la seguente: 

3, 2, asso, re, cavallo, fante, 7, 6, 5, 4.

Il calcolo del punteggio, in generale, avverrà nel seguente modo: Al termine d’ogni mano, ogni coppia conta i punti “interi” realizzati; gli eventuali terzi di punto "avanzati"  ( detti "scarti") non vanno contati; poi chi ha preso alla fine aggiunge un punto per l'ultima presa. Ad es. se una coppia totalizza 4 punti e un terzo di punto, gli vengono conteggiati solo i 4 punti interi: lo scarto di 1 terzo di punto  va eliminato;  analogamente se totalizzi 3 punti e 2/3: c'è un altro scarto (2/3 di punto) che va eliminato. Ad ogni mano i punti di ogni singolo giocatore vengono sommati con quelli realizzati nelle mani precedenti, stabilendo una graduatoria.

 Ricapitolo velocemente.

Le carte hanno i seguenti valori:

1 punto:  ASSO

1/3 di punto: TRE, DUE, RE, CAVALLO,FANTE

zero punti: QUATTRO, CINQUE, SEI, SETTE

1 punto in più per i giocatori che effettuano l'ultima presa. 

La gerarchia per la presa è:

3, 2, Asso, 10, 9, 8, 7, 6, 5, ,4.

Vince chi arriva per primo a 41.

Buon divertimento!


Updated 20 days ago
StatusReleased
PlatformsWindows
AuthorANDREAS
GenreCard Game
Tagsartificial-intelligence
Average sessionA few minutes
LanguagesItalian

Purchase

Buy Now1.00€ EUR or more

In order to download this game you must purchase it at or above the minimum price of 1.00€ EUR. You will get access to the following files:

TRESSE17.2.zip 201 kB
tresette120.zip 201 kB
tresse1.alfa.zip 202 kB
tresseDELTA.zip 202 kB

Development log

Leave a comment

Log in with itch.io to leave a comment.