Spaces:
Sleeping
Sleeping
import time | |
import re | |
import pandas as pd | |
import numpy as np | |
import graphviz as graphviz | |
import streamlit as st | |
from st_click_detector import click_detector | |
dot = graphviz.Digraph() | |
dot.node('ActionMechanics', 'Action Mechanics πͺ') | |
dot.node('AuctionMechanics', 'Auction Mechanics π°') | |
dot.node('AreaControlMechanics', 'Area Control Mechanics πΊοΈ') | |
dot.node('CardMechanics', 'Card Mechanics π') | |
dot.node('CooperativeMechanics', 'Cooperative and Semi-Cooperative Mechanics π€') | |
dot.node('DiceMechanics', 'Dice Mechanics π²') | |
dot.node('MovementMechanics', 'Movement Mechanics π') | |
dot.node('ResourceMechanics', 'Resource Mechanics π') | |
dot.node('TurnOrderMechanics', 'Turn Order Mechanics β³') | |
dot.node('SocialInteractionMechanics', 'Social Interaction Mechanics π¬') | |
dot.node('MemoryMechanics', 'Memory Mechanics π§ ') | |
dot.node('DexterityMechanics', 'Dexterity Mechanics π€Ή') | |
dot.node('ResourceManagementMechanics', 'Resource Management Mechanics πΌ') | |
dot.node('NarrativeMechanics', 'Narrative Mechanics π') | |
dot.node('StrategyMechanics', 'Strategy Mechanics π―') | |
dot.node('ChanceMechanics', 'Chance Mechanics π²') | |
dot.node('TimeMechanics', 'Time Mechanics β°') | |
dot.node('OtherMechanics', 'Other Mechanics π') | |
dot.edge('ActionMechanics', 'AuctionMechanics') | |
dot.edge('ActionMechanics', 'AreaControlMechanics') | |
dot.edge('ActionMechanics', 'CardMechanics') | |
dot.edge('ActionMechanics', 'CooperativeMechanics') | |
dot.edge('ActionMechanics', 'DiceMechanics') | |
dot.edge('ActionMechanics', 'MovementMechanics') | |
dot.edge('ActionMechanics', 'ResourceMechanics') | |
dot.edge('ActionMechanics', 'TurnOrderMechanics') | |
dot.edge('ActionMechanics', 'SocialInteractionMechanics') | |
dot.edge('AuctionMechanics', 'ResourceMechanics') | |
dot.edge('AreaControlMechanics', 'MovementMechanics') | |
dot.edge('CardMechanics', 'ResourceManagementMechanics') | |
dot.edge('CooperativeMechanics', 'ResourceMechanics') | |
dot.edge('DiceMechanics', 'ChanceMechanics') | |
dot.edge('MovementMechanics', 'ResourceManagementMechanics') | |
dot.edge('ResourceMechanics', 'StrategyMechanics') | |
dot.edge('TurnOrderMechanics', 'TimeMechanics') | |
dot.edge('OtherMechanics', 'ActionMechanics') | |
# Draw the graph using Streamlit's graphviz_chart function | |
st.graphviz_chart(dot.source) | |