wesley974 / rubygame Goto Github PK
View Code? Open in Web Editor NEWA game to learn Ruby
License: MIT License
A game to learn Ruby
License: MIT License
The trap doesn't work for the PressAnyKey library.
error : in `block in initialize': Interrupt (Interrupt)
When the correct number is guessed, the game outputs 'Too Big!' before outputting the time left and 'We have a winner!'
[rubygame] ruby -Ispec -Ilib -r minitest/autorun spec/core_spec.rb
Run options: --seed 53194
# Running:
EE
Finished in 0.001318s, 1517.2124 runs/s, 0.0000 assertions/s.
1) Error:
Core#test_0001_should have default value tries as 0:
NoMethodError: undefined method `eql' for #<#<Class:0x00000001037158>:0x00000000e981f8>
Did you mean? eql?
spec/core_spec.rb:9:in `block (2 levels) in <main>'
2) Error:
Core#test_0002_should have secret range in between 1 and 100:
NoMethodError: undefined method `be_between' for #<#<Class:0x00000001037158>:0x00000000e97aa0>
spec/core_spec.rb:13:in `block (2 levels) in <main>'
2 runs, 0 assertions, 0 failures, 2 errors, 0 skips
Running tests is more complicated than it needs to be. A rake task could be provided for testing.
This may provide some better syntax, and may help clean up the code a little bit. We will see.
@wesley974, can you implement? In a pull request?
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.