This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Tiles</title> | |
<style> | |
canvas { | |
width: 1024px; | |
height: 1024px; | |
} | |
img { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Katas { | |
class Frame(int index) { | |
public List<int> Rolls = new List<int>(); | |
public int FrameIndex { get; } = index; | |
public bool Completed { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let games = [ | |
(0, [0; 0 ]); | |
(5, [0; 5 ]); | |
(10, [5; 5; 0; 0 ]); | |
(20, [5; 5; 5; 0 ]); | |
(10, [10; 0; 0 ]); | |
(20, [10; 5; 0 ]); | |
(20, [10; 0; 5 ]); | |
(30, [10; 5; 5 ]); | |
(300, [10; 10; 10; 10; 10; 10; 10; 10; 10; 10; 10; 10 ]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script> | |
</head> | |
<body> | |
<div id="chart"></div> | |
<script type="text/javascript"> | |
var w = 800, h = 500; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img style="transform: rotate(45deg)" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAACXBIWXMAAABIAAAASABGyWs+AAAAcXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabYzRCYAwDET/M0VGeElrrOMUquAGju9HK1T0QQiXu4vs13mIqqpqCcnLWmKLAMgtN/BKpwCOmQNp3GwMkwYw6dtjMlPtgU+5ggP59cShQpI/40FuFTUk+VSs69cAABHQSURBVHja7V15VBRntr/1VVUvGAYBgzuBCQmokWQ0DvG9SYzjQt6Yk4T4zhnzdIjZNJqM5p0TTWJyTuL8NcYFlUg3NuhMHpijEcz6giuOYtRxeaMxCi9xOcIAeYhIAKFru++Pa1earWmku6t6pn/HP6S766uv7u9u3/2W4hARIjAOzOgO/LMjQoDBiBBgMCIEGIwIAQYjQoDBCHsCVFUL60w6vAlARMY4TcPw5SC8CZBlee/efZqmchwXphyEKwGqqgLAmTNn5s6dV1lZBQARAgyAy+W6du3/tm7dAmFLQFharqZpjLGzZ7956KHJiCiKwvHjx8eMSaPPje5d/xBm3SWQ0jidzvb2NpvN1tLy45YthQCgqmrY6VP4WQCp+bfffpuRkdHe7rbb7W1trXFxsceOHbvnnnvCzgjCqa8ETdMAoKCgoK2tTRAERBRFy/Xr1wsLC/RvwwkYViAnc+FCZUxMLAAwJtjtgxgTAODOO4d+//1F/TfhgjCzAFJwl6ugublJECz0JyKKorWh4YeCgkIIOyMwWgP6AVLtqqqq+PghAMBxPACz2wdxHM/zIgAMHz7i6tVqRFQUxejO+otwsgBEBICCgoLGxmuiaEWv9EHTNFG01tXVbt68GcLLCIzWAH9B6n/1avXw4SMBgDEBgOkWwHE8RYLRoxPr6uoRUaMKkekRNhZAtQen01lX93fd+3tD0zSeF6u |