Spaces:
Sleeping
Sleeping
File size: 2,158 Bytes
e2f9c58 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
import streamlit as st
from graphviz import Digraph
# Define the graph
dot = 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)
|