{{ message }}

Instantly share code, notes, and snippets.

🦆
"kamo" means "ducks"

🦆
"kamo" means "ducks"
Created Aug 21, 2019

View GA_labyrinth.py
 # GA(遺伝的アルゴリズム)で迷路をやってみる import copy import random random.seed() # 迷路定義 LABYRINTH = [ [1,1,1,1,1,1,1,1,1,1], # 1...壁 0...道
Created Aug 21, 2019
Luaでソートアルゴリズムで遊んだやつ
View SortAlgorithmTest.lua
 --Sort Algorithm Test --コマンドライン引数 --[数列の個数] [最大値] [最小値] [-s] [-b] -- [-s] [-b] でそれぞれのソートを無効化 s = false b = false function print_(str)
Created Aug 21, 2019
Luaで安定結婚問題で遊んだやつ
View StableMarriageProblemTest.lua
 --Stable Marriage Problem Test pair = 4 --priority men = {} men['A'] = {list = {"a","c","d","b"}, pair = nil ,name = "A"} men['B'] = {list= {"b","d","a","c"}, pair = nil,name = "B"}
Last active Aug 21, 2019
Python - matplotlibでソートアルゴリズムをアニメ化する
Last active Aug 21, 2019
Processing3 - 回る正弦関数
View sin_function.pde
 //sin() と tan()の動き //スペースキーで止まるよ //r:Φ初期角度　a:ω角速度? float r = 0; float a = 0.01; boolean isStop = false; void setup() { size(700,700);
Last active Sep 2, 2019
C - 自然数の累乗の和の公式を求めるプログラム