Code Monkey home page Code Monkey logo

animal's Introduction

The Animal Game

The game from my childhood.

Rewrite from BASIC to few other languages: JS, Ruby, Python, Go.

To run JS version:

npx github:drom/animal

http://pdp-11.trailing-edge.com/rsts11/rsts-11-013/ANIMAL.BAS

The Animal Game predates the personal computer by many years, going back at least to the early 70's.

Published in "101 BASIC Computer Games" (ed. by David H. Ahl - Maynard, Mass., Digital Equipment, 1973.)

alt text

animal's People

Contributors

beforan avatar drom avatar hako avatar luciandragomir avatar sdeseille avatar sudhanshug16 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

animal's Issues

GO version crash

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.