Skip to content

Conversation

@CasanovaAlessandro
Copy link

Ecco professore dovrei essere riuscito a caricare il file si chiama NxN Code. Spero riesca a vederlo e a commentare. Grazie

mariopaolucci and others added 28 commits March 19, 2025 13:25
Co-authored-by: Benedetto Pitò - benedetto.pito@studio.unibo.it <benedetto.pito@studio.unibo.it>
Co-authored-by: simonecocca <simonecocca@users.noreply.github.com>
Co-authored-by: Nikocioni <Nikocioni@users.noreply.github.com>
Co-authored-by: Sonia Compri - sonia.compri@studio.unibo.it <sonia.compri@studio.unibo.it>
This model written in Python using Mesa3 aims to reproduce the model xnx_imitate_if_better.nlogo. The model should work quite well; you can modify the payoff matrix, the revision probability, and the number of agents and steps to obtain different results. In the end, the model should produce a stacked histogram where the model's evolution is visualized.
This model is a slightly more complex version of the previous one. The main difference is that the payoff matrix is a 5x5, meaning we now have five elements: rock, paper, scissors, lizard, and Spock. The idea is that each element can defeat two of the others and lose to the remaining two, keeping the game interesting and balanced.

Scissors cut paper

Paper covers rock

Rock crushes lizard

Lizard poisons Spock

Spock smashes scissors

Scissors decapitate lizard

Lizard eats paper

Paper disproves Spock

Spock vaporizes rock

And as always:

Rock crushes scissors
5x5 imitate if better

This model is a slightly more complex version of the previous one. The main difference is that the payoff matrix is a 5x5, meaning we now have five elements: rock, paper, scissors, lizard, and Spock. The idea is that each element can defeat two of the others and lose to the remaining two, keeping the game interesting and balanced.

Scissors cut paper

Paper covers rock

Rock crushes lizard

Lizard poisons Spock

Spock smashes scissors

Scissors decapitate lizard

Lizard eats paper

Paper disproves Spock

Spock vaporizes rock

And as always:

Rock crushes scissors

cretits to the CBS show "The big bang theory" - https://www.youtube.com/watch?v=Z2Dwxv-EMTM
Fatte alcune modifiche estetiche nella presentazione del grafico e aggiustato le labels
Update nxn_imitate_if_better_Cocca.py
renamed file, got past the network init error.
Ho riscritto tutto il codice rimane qualche modifica da fare per inserire il modello watts e per i grafici, per il resto mi sembra completo
Versione finale del codice per eventuali modifiche
@mariopaolucci mariopaolucci deleted the Alessandro_casanova_network branch May 18, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants