Full-stack engineer. UX, UI, SVG, JavaScript, WASM, C, Forth, Verilog, RISC-V, SDR, Radio, Antenna
drom / animal Goto Github PK
View Code? Open in Web Editor NEW:fish: / :bird: "Guess The Animal" game
License: MIT License
:fish: / :bird: "Guess The Animal" game
License: MIT License
Full-stack engineer. UX, UI, SVG, JavaScript, WASM, C, Forth, Verilog, RISC-V, SDR, Radio, Antenna
Implement the game described on front page in Python
The node.js program that will:
Implement the game described on front page in Perl
Implement the game described on front page in Go https://golang.org
Implement the game described on front page in Rust
Building GO version:
cd go
go version
# go version go1.6.3 linux/amd64
go build animal.go data.go types.go
Running the test:
./animal < ../test/test.txt
Getting Error:
Play 'Guess the Animal'
Think of an animal and the computer will try to guess it...
Are you thinking of an animal?
Does it swim?
Is it a Fish?
What was the animal you were thinking of?
Please type in a Yes/No question that would distinguish an elephant from a Fish
What is the answer to your question for an elephant
Please answer yes or no.
What is the answer to your question for an elephant
Are you thinking of an animal?
panic: runtime error: slice bounds out of range
goroutine 1 [running]:
panic(0x4e98e0, 0xc82000a230)
/usr/lib64/go/src/runtime/panic.go:481 +0x3e6
main.main()
/home/drom/work/github/drom/animal/go/animal.go:19 +0x434
CC: @beforan
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.