# HG changeset patch # User Oleksandr Gavenko # Date 1411419657 -10800 # Node ID 4bb8ed8448bc3c6e184ca06935a7aa4a38a8f1de # Parent 7b9d1bb9c471d91726ab6f10ddbe7d54234b8328 Reduce CSS style classes. diff -r 7b9d1bb9c471 -r 4bb8ed8448bc 2048.html --- a/2048.html Mon Sep 22 22:36:03 2014 +0300 +++ b/2048.html Tue Sep 23 00:00:57 2014 +0300 @@ -28,38 +28,33 @@ margin: 0; text-align: center; } - div.ai-control, div.move-control, div.score-conrol { + div.control { + text-align: left; border: 1px red solid; display: inline-block; - margin: 10px 0 2px 0; + margin: 3px 2px; background-color: cornsilk; + padding: 2px; } - div.move-control, div.score-conrol { - padding: 3px; - } - div.move-control button.suggestion { + div.move.control button.suggestion { background-color: cyan; } - div.ai-control { - padding: 2px 2px 2px 1em; - } - div.ai-control:before { - content: "AI: "; - margin-left: -.5em; - padding: 0; + div.wide.control { + display: block; } - div.ai, div.settings, div#reports { - border: 1px red solid; - margin-top: 20px; - padding: 2px; + div.ai.control { position: relative; - background-color: cornsilk; + margin-bottom: 1em; } - div.ai.enabled { + div.ai.control.enabled { background-color: wheat; } - div.ai > h5 { - margin: 2px 0 2px 6em; + div.control h5 { + text-align: center; + margin: 2px 0; + } + div.ai.control h5 { + margin-left: 6em; } button.ai { position: absolute; @@ -68,33 +63,23 @@ } button#statistic, button#statistic-clean { display: inline-block; - float: left; margin: 3px 4px; } - div.ai > div.option, div.setting, div.report { + div.control > div.option { display: inline-block; margin: 1px 4px; padding: 2px; border: 1px solid tan; border-radius: 4px; } - div.ai > div.option, div.setting { - float: left; - } - div.ai > div.option > input.positive, div.settings > div.setting > input, div.ai-control input.positive { + div.control input { text-align: right; max-width: 4em; margin-right: 2px; } - .clearfix { - clear: both; - } #test { display: none; } - div.report > h5 { - margin: 2px 0; - } table.report-by-maxval { border-collapse: collapse; margin: 2px; @@ -120,7 +105,7 @@

2048

-
+
Score: 0, Max: 0, Turn: 0, Speed: 0 t/s
@@ -155,22 +140,24 @@
-
+
- 2048 +
2048
-
+
+
-
+
+
- until score - and max value +
until score
+ and
max value
-
-
+
+
@@ -182,12 +169,12 @@

AIs

-
-
+
+
bling random
-
+
bling weight random
@@ -202,9 +189,8 @@
down weight
-
-
+
blind cycle
@@ -213,9 +199,8 @@
max move in one direction
-
-
+
one step ahead
@@ -233,9 +218,8 @@
free cell coefficient
-
-
+
deep merges without random simulation
@@ -256,9 +240,8 @@
score threshold
-
-
+
expectimax
@@ -282,26 +265,22 @@
free cell coefficient
-
-
+

Reports

-
-
times
-
limit to sec
+
+
times
+
limit to sec
-
score
-
turn
-
speed
-
+
score
+
turn
+
speed
-
-
-
+