tangled
alpha
login
or
join now
munksgaard.tngl.sh
/
scoundrel
1
fork
atom
A Gleam implementation of the Scoundrel solo card game
munksgaard.me/scoundrel
lustre
scoundrel
gleam
card
game
1
fork
atom
overview
issues
pulls
pipelines
add links and some styling changes
munksgaard.tngl.sh
3 months ago
fe52a733
862111f3
+40
-9
1 changed file
expand all
collapse all
unified
split
src
scoundrel.gleam
+40
-9
src/scoundrel.gleam
···
63
63
fn game_board(model: Model) -> Element(Msg) {
64
64
html.div(
65
65
[
66
66
-
attribute.class(
67
67
-
"mx-auto max-w-3xl border rounded-sm p-4 shadow-sm space-y-4",
68
68
-
),
66
66
+
attribute.class("mx-auto max-w-3xl my-6 space-y-2"),
69
67
],
70
68
[
71
71
-
html.div([attribute.class("flex justify-between")], [
72
72
-
health_info(model.state),
73
73
-
monsters_left(model.state),
74
74
-
weapon_info(model.state.weapon),
69
69
+
html.div([attribute.class("border rounded-sm p-4 shadow-sm space-y-4")], [
70
70
+
html.div([attribute.class("flex justify-between")], [
71
71
+
health_info(model.state),
72
72
+
monsters_left(model.state),
73
73
+
weapon_info(model.state.weapon),
74
74
+
]),
75
75
+
room_info(model.state),
76
76
+
flee_button(model.state),
77
77
+
]),
78
78
+
html.div([attribute.class("flex justify-between text-xs")], [
79
79
+
html.span([], [
80
80
+
html.a(
81
81
+
[
82
82
+
attribute.class("link link-neutral"),
83
83
+
attribute.href("http://www.stfj.net/art/2011/Scoundrel.pdf"),
84
84
+
],
85
85
+
[
86
86
+
html.text("Rules"),
87
87
+
],
88
88
+
),
89
89
+
html.text(" ("),
90
90
+
html.a(
91
91
+
[
92
92
+
attribute.class("link link-neutral"),
93
93
+
attribute.href("https://www.youtube.com/watch?v=Gt2tYzM93h4"),
94
94
+
],
95
95
+
[
96
96
+
html.text("Video"),
97
97
+
],
98
98
+
),
99
99
+
html.text(")"),
100
100
+
]),
101
101
+
html.a(
102
102
+
[
103
103
+
attribute.class("link link-neutral"),
104
104
+
attribute.href("https://tangled.org/munksgaard.tngl.sh/scoundrel"),
105
105
+
],
106
106
+
[html.text("Source")],
107
107
+
),
75
108
]),
76
76
-
room_info(model.state),
77
77
-
flee_button(model.state),
78
109
],
79
110
)
80
111
}