This file contains hidden or 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
| class Race | |
| def initialize(racers) | |
| @racers = racers.map { |rc| rc.new } | |
| results = @racers.map { |_r| 1 } | |
| @racers.each do |r| | |
| r.set_turn_results(1, 1, results) | |
| end | |
| @goaled = [] | |
| end |
This file contains hidden or 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
| // 値オブジェクト:アルカナ | |
| export default class Arcana { | |
| private _arcanaCode: string | |
| private _cost: number | |
| constructor(code: string, cost: number) { | |
| this._arcanaCode = code | |
| if (this.cost >= 0) { | |
| this._cost = cost |
This file contains hidden or 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
| object BF { | |
| private val commends = mapOf( | |
| '>' to "pinc", | |
| '<' to "pdec", | |
| '+' to "inc", | |
| '-' to "dec", | |
| '.' to "out", | |
| ',' to "inp", | |
| '[' to "jmp", | |
| ']' to "ret" |
This file contains hidden or 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
| # https://paiza.jp/logic_summoner/challenges/logics_skill_4005 | |
| def mark(board, table, w, max, color, base, ind) | |
| return if table[ind] | |
| return unless color == board[ind] | |
| r = ind % w | |
| table[ind] = base | |
| mark(board, table, w, max, color, base, ind - 1) if r > 0 # left | |
| mark(board, table, w, max, color, base, ind + 1) if r < w - 1 # right | |
| mark(board, table, w, max, color, base, ind - w) if ind >= w # up |
This file contains hidden or 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
| defmodule BF do | |
| @cmap %{ | |
| ">" => :pinc, | |
| "<" => :pdec, | |
| "+" => :inc, | |
| "-" => :dec, | |
| "." => :out, | |
| "," => :inp, | |
| "[" => :jmp, | |
| "]" => :ret |
This file contains hidden or 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
| https://paiza.jp/moshijo |
This file contains hidden or 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
| https://paiza.jp/poh/hatsukoi/ |
This file contains hidden or 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
| https://paiza.jp/poh/ando | |
| glasses | |
| https://paiza.jp/poh/ando/share/f872136d | |
| santa | |
| https://paiza.jp/poh/ando/share/b8c73b8b | |
| swimwear | |
| https://paiza.jp/poh/ando/share/841f1803 |
This file contains hidden or 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
| https://paiza.jp/poh/joshibato/ | |
| kirishima.rb | |
| https://paiza.jp/poh/joshibato/kirishima/result/4d6681fb | |
| rio.rb | |
| https://paiza.jp/poh/joshibato/tsubame/result/f494a598 | |
| tsubame.rb | |
| https://paiza.jp/poh/joshibato/tsubame/result/f494a598 |
This file contains hidden or 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
| https://paiza.jp/poh/enshura |
NewerOlder