Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shumaikunkun/Hanoi

61種類のプログラミング言語でハノイの塔を実装【どなたでもプルリクお待ちしています☺️】
https://github.com/shumaikunkun/Hanoi

Last synced: about 9 hours ago
JSON representation

61種類のプログラミング言語でハノイの塔を実装【どなたでもプルリクお待ちしています☺️】

Awesome Lists containing this project

README

        

# Hanoi
## 概要
様々なプログラミング言語でハノイの塔を実装

## 言語一覧
| 番号 | 言語 | ファイル名 | Contributor | 標準入力 |
| --- | --- | --- | --- | --- |
| 1 | Assembly | [hanoi.cas](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.cas) | [shumaikunkun] | 🙆‍♂️ | 🙆‍♂️ |
| 2 | Brainfuck | [hanoi.bf](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.bf) | [shumaikunkun] | 🙆‍♂️ |
| 3 | Shell | [hanoi.sh](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.sh) | [shumaikunkun] | 🙆‍♂️ |
| 4 | PowerShell | [hanoi.ps1](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.ps1) | [narumincho] | 🙆‍♂️ |
| 5 | LISP | [hanoi.lisp](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.lisp) | [shumaikunkun] | 🙆‍♂️ |
| 6 | Haskell | [hanoi.hs](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.hs) | [narumincho] | 🙆‍♂️ |
| 7 | Pascal | [hanoi.pas](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.pas) | [shumaikunkun] | 🙆‍♂️ |
| 8 | C | [hanoi.c](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.c) | [shumaikunkun] | 🙆‍♂️ |
| 9 | C++ | [hanoi.cpp](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.cpp) | [shumaikunkun] | 🙆‍♂️ |
| 10 | C# | [hanoi.cs](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.cs) | [shumaikunkun] | 🙆‍♂️ |
| 11 | Java | [hanoi.java](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.java) | [shumaikunkun] | 🙆‍♂️ |
| 12 | Go | [hanoi.go](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.go) | [narumincho] | 🙆‍♂️ |
| 13 | Rust | [hanoi.rs](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.rs) | [narumincho] | 🙆‍♂️ |
| 14 | D | [hanoi.d](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.d) | [shumaikunkun] | 🙆‍♂️ |
| 15 | R | [hanoi.r](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.r) | [shumaikunkun] | 🙆‍♂️ |
| 16 | Perl | [hanoi.pl](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.pl) | [shumaikunkun] | 🙆‍♂️ |
| 17 | Ruby | [hanoi.rb](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.rb) | [shumaikunkun] | 🙆‍♂️ |
| 18 | Python | [hanoi.py](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.py) | [shumaikunkun] | 🙆‍♂️ |
| 19 | PHP | [hanoi.php](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.php) | [shumaikunkun] | 🙆‍♂️ |
| 20 | Elixir | [hanoi.ex](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.ex) | [shumaikunkun] | 🙆‍♂️ |
| 21 | JavaScript | [hanoi.js](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.js) | [narumincho] | 🙆‍♂️ |
| 22 | TypeScript | [hanoi.ts](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.ts) | [narumincho] | 🙆‍♂️ |
| 23 | PureScript | [Hanoi.purs](https://github.com/shumaikunkun/Hanoi/blob/master/Hanoi.purs) | [narumincho] | 🙆‍♂️ |
| 24 | Elm | [Hanoi.elm](https://github.com/shumaikunkun/Hanoi/blob/master/Hanoi.elm) | [narumincho] | 🙅‍♂️ |
| 25 | Visual Basic | [hanoi.vb](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.vb) | [shumaikunkun] | 🙆‍♂️ |
| 26 | Fortran | [hanoi.f90](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.f90) | [AstroKen] | 🙆‍♂️ |
| 27 | Nemerle | [hanoi.n](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.n) | [shumaikunkun] | 🙅‍♂️ |
| 28 | Ocaml | [hanoi.ml](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.ml) | [Hirokazu Taniguchi] | 🙆‍♂️ |
| 29 | F# | [hanoi.fs](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.fs) | [Hirokazu Taniguchi] | 🙅‍♂️ |
| 30 | CoffeeScript | [hanoi.coffee](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.coffee) | [shumaikunkun] | 🙆‍♂️ |
| 31 | Kotlin | [hanoi.kt](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.kt) | [Taiga Nishimura] | 🙆‍♂️ |
| 32 | プロデル | [hanoi.rdr](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.rdr) | [Hirokazu Taniguchi] | 🙅‍♂️ |
| 33 | なでしこ | [hanoi.nako](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.nako) | [Hirokazu Taniguchi] | 🙅‍♂️ |
| 34 | Wolfram | [hanoi.wl](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.wl) | [AstroKen] | 🙅‍♂️ |
| 35 | Groovy | [hanoi.groovy](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.groovy) | [shumaikunkun] | 🙆‍♂️ |
| 36 | Kuin | [hanoi.kn](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.kn) | [narumincho] | 🙆‍♂️ |
| 37 | Ada | [hanoi.ada](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.ada) | [shumaikunkun] | 🙆‍♂️ |
| 38 | Icon | [hanoi.icn](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.icn) | [shumaikunkun] | 🙆‍♂️ |
| 39 | Scala | [hanoi.scala](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.scala) | [shumaikunkun] | 🙆‍♂️ |
| 40 | Scheme | [hanoi.scm](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.scm) | [shumaikunkun] | 🙆‍♂️ |
| 41 | Crystal | [hanoi.cr](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.cr) | [Masato Sugiyama] | 🙆‍♂️ |
| 42 | Fantom | [hanoi.fan](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.fan) | [shumaikunkun] | 🙅‍♂️ |
| 43 | Pike | [hanoi.pike](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.pike) | [shumaikunkun] | 🙆‍♂️ |
| 44 | AWK | [hanoi.awk](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.awk) | [shumaikunkun] | 🙆‍♂️ |
| 45 | Julia | [hanoi.jl](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.jl) | [0x005c] | 🙆‍♂️ |
| 46 | Ook! | [hanoi.ook](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.ook) | [shumaikunkun] | 🙆‍♂️ |
| 47 | bc | [hanoi.bc](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.bc) | [shumaikunkun] | 🙆‍♂️ |
| 48 | Aleph | [hanoi.als](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.als) | [shumaikunkun] | 🙅‍♂️ |
| 49 | Erlang | [hanoi.erl](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.erl) | [shumaikunkun] | 🙅‍♂️ |
| 50 | ksh | [hanoi.ksh](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.ksh) | [shumaikunkun] | 🙆‍♂️ |
| 51 | Dart | [hanoi.dart](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.dart) | [Kurogoma4D] | 🙆‍♂️ |
| 52 | Io | [hanoi.io](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.io) | [matoruru] | 🙆‍♂️ |
| 53 | Fish | [hanoi.fish](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.fish) | [matoruru] | 🙆‍♂️ |
| 54 | Closure | [hanoi.clj](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.clj) | [matoruru] | 🙆‍♂️ |
| 55 | Idris | [hanoi.idr](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.idr) | [matoruru] | 🙆‍♂️ |
| 56 | Swift | [hanoi.swift](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.swift) | [shumaikunkun] | 🙆‍♂️ |
| 57 | Lua | [hanoi.lua](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.lua) | [matoruru] | 🙆‍♂️ |
| 58 | LLVM | [hanoi.ll](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.ll) | [matoruru] | 🙆‍♂️ |
| 59 | V | [hanoi.v](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.v) | [matoruru] | 🙆‍♂️ |
| 60 | Nim | [hanoi.nim](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.nim) | [matoruru] | 🙆‍♂️ |
| 61 | VimScript | [hanoi.vim](https://github.com/shumaikunkun/Hanoi/blob/master/hanoi.vim) | [matoruru] | 🙆‍♂️ |

[shumaikunkun]:https://github.com/shumaikunkun
[narumincho]:https://github.com/narumincho
[AstroKen]:https://github.com/AstroKen
[Hirokazu Taniguchi]:https://github.com/Sabanna-Hirokazu
[Taiga Nishimura]:https://github.com/TaigaNatto
[Masato Sugiyama]:https://github.com/smasato
[0x005c]:https://github.com/0x005c
[Kurogoma4D]:https://github.com/Kurogoma4D
[matoruru]:https://github.com/matoruru

## 目的
入出力や条件分岐、再帰によるサブ関数の作成や呼び出しなど、プログラミングにおける基本文法を様々な言語で実装することで、比較したり新たな言語を発掘し基本文法の学習に役立てる。

## 主な実行環境
+ ローカルの実行環境

+ Web上のIDE
+ 大多数の言語
+ ideone.com(http://ideone.com/)
+ coding ground(https://www.tutorialspoint.com/codingground.htm)
+ Ook!
+ Ook! Interpreter(https://gc.de/gc/ook/)

## 入出力例
+ 例1
+ Input `2`
+ Output `a=>c a=>b c=>b`
+ 例2
+ Input `3`
+ Output `a=>b a=>c b=>c a=>b c=>a c=>b a=>b`
+ 例3
+ Input `4`
+ Output `a=>c a=>b c=>b a=>c b=>a b=>c a=>c a=>b c=>b c=>a b=>a c=>b a=>c a=>b c=>b`