Giter VIP home page Giter VIP logo

Comments (7)

gto76 avatar gto76 commented on June 3, 2024

Yes,
I was just thinking about it today, how cool it would be if it was an actual game with challenges...
With a little story, maybe happening in Britain during WW2, you get hired to work on Colossus computer...

from comp-cpp.

hughrawlinson avatar hughrawlinson commented on June 3, 2024

That would be great, but it'd also require a lot more work.

from comp-cpp.

gto76 avatar gto76 commented on June 3, 2024

It's easy to add new instructions (@ketralnis already added two #7), and adding another ram rack wouldn't be too hard either. So it would make sense that you get a new instruction or more ram for every new level (or even better; you would get the instruction that you programmed in last level). You would read input of the challenge from the last address (instead of random value), so that wouldn't require any interface change...

The main chunk of work would be coming up with interesting levels. Also there would have to be a little window for displaying text, save/load mechanism and of course an outro (maybe also some buzzing sounds, a blown vacuum tube here and there... argh feature creep :)

So if anyone has any ideas for the challenges (besides multiplication, division and fibonacci) please post them here!

PS: Of course the ultimate challenge is a Quine

from comp-cpp.

gto76 avatar gto76 commented on June 3, 2024

Enabled noninteractive mode and piped input with this commit: 130d77d
For now it's in separate branch, will be merged when finished and documented.

Summary:
Noninteractive mode is started if any input is piped to the
program. In this mode computer prints to 'stdout', there is no
user interface, 'usleep' is not called between cycles, and when
program reads from last address, instead of random value, it
gets one line from stdin (pipe). In this line every '*' is
interpreted as true and all other characters as false. If there
is not enough characters, all missing bits are set to false; and
all characters after the eight one are ignored.

from comp-cpp.

gto76 avatar gto76 commented on June 3, 2024

I changed my mind, i'm freezing this project and starting a new fork, that will have the non-interactive mode, but also more instructions and separate ram for code and data...

from comp-cpp.

hughrawlinson avatar hughrawlinson commented on June 3, 2024

Separate ram would be an awesome feature 😄

from comp-cpp.

gto76 avatar gto76 commented on June 3, 2024

I made the "Mark II" version
https://github.com/gto76/comp-m2

from comp-cpp.

Related Issues (7)

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.