Skip to content

Instantly share code, notes, and snippets.

@progheal
progheal / tally.js
Created October 8, 2023 14:56
《西瓜遊戲得分裡的數學》(https://blog.cruciferslab.net/?p=1535) 的模擬程式
function randomFruit()
{
return Math.floor(Math.random() * 5);
}
const FruitInfo = [
{apple: 1/32, point: 3.09375}, // 櫻桃
{apple: 1/16, point: 5.1875}, // 草莓
{apple: 1/8, point: 7.375}, // 葡萄
@progheal
progheal / 000Guestbook.md
Created November 30, 2023 08:03
留言板

開這裡當做一個暫時的留言板好了。如果沒有其他方法聯絡得到我但正好有 github 帳號的話可以在這裡留言。 我會不定時上來巡一下,所以不保證我什麼時候會看得到。

TODO: 弄個好一點不用登入 github 的接收訊息處


This is a temporary guestbook. If you have no other way of contacting me but happened to have a github account,

In this document, "cycle" means North-West-South-East move once, and "loop" means the repeating pattern after some amount of cycles are run. "Loop length" the number of cycles needed to obtain the loop, and call a pattern "length X loop" meaning it will repeat the end state after every X cycles.

So, here's my basic item. Call it Q0.

.##.
#.O#
#..#
.##.