Usage
Get started
- Choose a Seed to generate an input in Input.
- Run your solution locally and paste its output into Output.
- Press ▶ to play the animation. Use the slider to change the display position, and Speed to adjust the playback speed.
Load and save
- Download: save #cases inputs, starting from Seed.
- Select directory: choose a folder of output files and switch between them. Names such as
1234.txtorabcd_1234.txtautomatically select seed 1234; other names use seed 0. - Export: save the current image as PNG, or the animation as GIF or Video at the current Speed.
Bricks and holes
- The reddish-brown rectangles are bricks. Variations in color and surface texture are decorative and do not indicate brick types or states.
- Circles mark hole positions. Teal indicates a hole covered by a brick, and red indicates an uncovered hole.
- The short line at the bottom center of each brick is its connector. It is dark gray when supported and red when the cell directly below the center is empty. The thick line below the wall is the floor.
- The bottom-left cell is (0, 0), with x increasing to the right and y increasing upward. Hover over a cell to see its coordinates, whether it contains a hole, and information about the brick covering it.
Switching between solutions
- Use t or the slider to switch between complete arrangements. t = 0 is the first solution. Playback displays the solutions in output order.
- Score is the score of the displayed solution, Cost is its total cost, Bricks is the number of bricks, and Covered is the number of covered holes.
- For an invalid arrangement, the score is displayed as 0 and the reason appears in red. If the output format is invalid, the hole positions and the error are displayed.
- Only the last solution is used for scoring. However, an invalid format or an out-of-range value in any earlier solution makes the entire output invalid.
使い方
まず使ってみる
- Seed を選ぶと、Input に入力が生成されます。
- 解答プログラムをローカルで実行し、出力を Output に貼り付けます。
- ▶ で再生します。スライダーで表示位置、Speed で再生速度を変更できます。
ファイルの読み込み・保存
- Download:Seed から連続する #cases 個の入力をまとめて保存します。
- Select directory:出力ファイルのフォルダを選ぶと、ファイルを切り替えられます。
1234.txtやabcd_1234.txtの形式なら Seed も自動で 1234 に切り替わり、それ以外の名前は Seed 0 で開きます。 - Export:現在の画像を PNG、アニメーションを現在の Speed で GIF または Video に保存します。
レンガと穴の表示
- 赤茶色の長方形がレンガです。焼き色や表面の質感の違いは装飾で、種類や状態を表すものではありません。
- 丸印は穴の位置です。青緑はレンガで覆われた穴、赤は未被覆の穴を表します。
- レンガの底面中央の短い線は接続部です。支持がある場合は濃い灰色、中央の直下が空の場合は赤色です。壁の下の太い線は床です。
- 座標は左下が (0, 0) で、右が x の正方向、上が y の正方向です。マスにカーソルを合わせると座標、穴の有無、レンガの情報を確認できます。
複数解の切り替え
- t とスライダーで完成配置を切り替えます。t = 0 が最初の解です。再生すると出力順に解が切り替わります。
- Score は表示中の解の得点、Cost は費用、Bricks はレンガの個数、Covered は覆われた穴の数です。
- 不正な配置では得点を 0 とし、赤字で理由を表示します。出力形式に誤りがある場合は、穴の位置とエラーを表示します。
- 採点には最後の解だけが使われます。ただし、途中の解でも出力形式や値域に誤りがあれば出力全体が不正になります。