Code Monkey home page Code Monkey logo

arithmetic's People

Contributors

agustinvallejo avatar amanda-phet avatar andrealin avatar andrewadare avatar andrey-zelenkov avatar chrisklus avatar cwilson4960 avatar denz1994 avatar jbphet avatar jessegreenberg avatar jonathanolson avatar katiewoe avatar luisav1 avatar marlitas avatar phet-dev avatar phet-steele avatar pixelzoom avatar samreid avatar veillette avatar zepumph avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arithmetic's Issues

Grimace should disappear the same way that the smile does

The "smile" face disappears from the screen after a couple of seconds when the user enters a correct answer, but the "grimace" face stays on the screen when they enter a value that is incorrect. The grimace should disappear the same way the smile does.

This was probably implemented this way because in the original Flash version of the sim, the feedback for an incorrect value stayed on the screen. Hence, this should probably be considered a spec change, and MLL can implement it or leave it to PhET at their discretion.

Comic Sans Very Aliased on Chrome

Although I know @dubson desires this font for its "drawn on a chalk board" feel, it renders very poorly and aliased on chrome. In addition the team felt the "fun factor" is being compromised by poor look.

Recommend changing to a simple sans serif font

arithmetic font

[Arithmetic] Clock issue

You can launch timer after several answers. For example you can launch it before giveng the last answer and get a time record. At the original model the timer can be launched but time stands 0.0

Color changes

In a review meeting on 6/13/2014, several color changes were recommended by the original designer of the sim and the current redesign lead. This ticket is meant to track these changes.

  • The scoreboard color should be lightened so that there is more contrast with the textual labels.
  • The background of the level selection screen should be a blue color, perhaps the color of the scoreboard.
  • The 'Refresh' and 'ReturnToLevelSelection' buttons are fairly orange, and they are more yellow in other sims. The color should be moved towards yellow.

Remove timer control button from control panel

The button that allows the timer to be turned on and off from within a challenge should be removed. Timer control should only be allowed from the level selection screen.

This is a change to the original spec quoted by MLL, so MLL should estimate the cost of this change and PhET can determine whether to do it internally or have MLL do it.

Best times should be shown on the level selection screen

The level selection screen should depict the user's best times. There is common code support for this. An example of how this feature looks can be seen in the screenshot below, taken from version 1.0.0 of the Graphing Lines simulation:

graphing-lines-best-times

[Arithmetic] missing keyboard input

that if the user is using a mouse and keyboard, the sim should allow number entry with the keyboard so that they don’t have to use the mouse if they don’t want.

Level selection buttons can be moved

By holding down the corner of a level, you can move the three level buttons up the page.
Tested on OSX 10.9.3 Chrome 35.0.1916.153 and Safari 7.0.4

Steps to reproduce
-Open one of the tabs
-Hold down one of the level buttons in the top corners
-The buttons will move up the page

screen shot 2014-07-08 at 11 10 45 am

Finishing a level clears the board

If you complete a level, and then press the "Continue" button, you are returned to the level selection screen, which is correct. If you then select that level again, the board is blank. If you return to the level selection screen by pressing the star button, the level selection progress indicator (the stars contained in the button) show the level to be complete.

The board should preserve the user's work even if they have completed the level.

Tested on http://www.colorado.edu/physics/phet/dev/html/arithmetic/1.0.0-dev.4/

[Arithmetic] Enter button issue

If the user has not entered an answer, the yellow “enter” button should be grayed out - the background of the button should be gray instead of yellow.

Screens should be in separate files, current "Screen" files should be "ScreenViews"

This is part of mid-development code review, see #1.

In order to make the structure clearer and to facilitate reuse of screens, PhET is now generally putting the screens in a separate file. So, rather that this (taken from arithmetic-main.js as of cfe3ac6):

// create and start the sim
new Sim( simTitle, [
  new Screen( '', new MultiplyScreenIconNode(),
    function() {return new MultiplyModel();},
    function( model ) {return new MultiplyScreen( model );},
    { backgroundColor: BACKGROUND_COLOR }
  ), ...

...it should look like this:

new Sim( simTitle, [ MultiplyScreen, ... ] );

The classes that are currently named XxxScreen, such as ArithmeticScreen, MultiplyScreen, etc are actually descendants of ScreenView and should thus be renamed XxxScreenView or simply XxxView if preferred. You can check out Balancing Act starting with balancing-act-main.js as an example.

Mid-development code review #1

In order to potentially identify any major design or implementation issues relatively early in the development cycle, PhET is starting a review of this simulation's code as it exists today. Minor issues will be noted in the simulation with the "//REVIEW" marker, larger issues will be logged separately and linked to this one.

Progress indicator is not cleared when 'Refresh' button is pressed on a level

To duplicate: Play part of a level (doesn't matter which operation type or level), return to the level selection screen by pressing the star button, go back to the same level, press the refresh button so that the board is cleared, then press the return to level selection (star) button. The progress indicator with still be partially filled in.

Feedback face should fade out instead of disappearing

During a review on 6/20/2014, @dubson requested that the feedback faces (i.e. the smile and grimace faces) should fade out instead of simply disappearing. This was how the correct answer feedback worked on the original simulation.

Fading can be implemented using a timer and setting opacity.

Setting text to undefined value causes assertions

When testing with assertions enabled (i.e. using the ?ea query parameter), an assertion occurs due to setting the text in a Scenery Text node to an undefined value. This is occurring because the default values for the properties in GameModel are all undefined, so resetting them causes this assertion. The default values probably need to be something else.

To duplicate, run the code as of SHA 672bb25 (the most recent as of this writing) with the ?ea query parameter.

Grid lines should be smaller for the grids with more numbers on them

The grid lines start to overwhelm the screen when the grid is larger. On the original simulation, the lines are made thinner when there are more numbers on it. It's a subtle but important effect. Screenshot below illustrates the issue.

arith-grid

...and here is a screenshot from the original Flash simulation:

arith-orig-grid

Rename "Constants" to "ArithmeticConstants"

Please rename Constants.js to ArithmeticConstants.js. With so many simulations, the names need to be more specific so that we can easily find the needed files. This should be done for all sims going forward.

Delay before factoring value appears

When using the factoring mode, click on the correct square, and there is enough delay before the number appears that a different square can be selected. See screenshot below.

To capture this screen shot, I clicked on the correct square, then moved the mouse fairly quickly.

arithmetic 1 0 0-dev

Captions missing from the nav bar

The captions don't appear on the nav bar for the 3 screens. This was probably done because the icons already contain the words (i.e. Multiply, Factor, and Divide), so the captions would be a bit redundant. However, the nav bar looks weird without them. It would be better to go ahead an include them, and add small icons for the nav bar that exclude the words.

Control panel should use common code strings for score and time

There are common code strings in the "Vegas" repo that can be used for displaying time and score on the control panel, please see vegas-strings_en.json. The layout won't be quite as nice, but they will be easier to translate and will work better for right-to-left languages, so PhET has decided that we should go ahead and use them.

Math grid should persist when user returns to level selection screen

This is a change to the originally specified behavior, and as such should be estimated by MLL.

Currently, if the user returns to the level selection screen by pressing the Return to Level Selection button (the one with the star on it), any work that had done is lost. The design team has decided that it would be better if the work was retained, so that the user could go back to a partially completed level and pick up where they left off, even if they start on a different level. This would imply maintaining separate state information for each of the 3 levels for each of the screens.

Score doesn't show up until level is completed

If the user plays part of the game, then returns to the level selection screen, their score should be indicated in the progress indicator in the level selection buttons. Right now, the buttons indicates no progress if the level wasn't fully completed.

when running with 'dev' query parameter, safe screen area is not shown

When adding the 'dev' query parameter to the URL, there should be a red rectangle (added by joist) that shows the 'safe' area of the screen. You can see it on the home screen, but it's missing on the individual screens. You're probably doing something to remove it or obscure it.

Factor portion of simulation will stop functioning

The factor portion of the simulation will stop functioning and the buttons for a certain number will become unusable. Tested on OSX 10.8 Chrome 35.0.1916.153

Steps to reproduce
-Click the factor portion of the simulation
-When the product of the equation is displayed, click the number UNDERNEATH the correct answer. This is the best way to reproduce this issue.
-After getting the answer incorrect, click the same number again and drag the cursor to the correct answer
-Try clicking the correct answer after this attempt. The button for the correct answer will become unusable and the user will not be able to progress.

Change color scheme

Some changes to the color scheme were made to the spec on June 2, 2014 (according to the Google Doc revision history). This is a change to the specification from the original version that MLL quoted, so MLL should estimate the cost of these changes and PhET will determine whether MLL should do them or if they will be done internally.

Odd way to do reset

On lines 94 through 96 of ArithmeticModel.js (as of SHA 9dd2e69) it looks like a reset occurs when the level is changed to some falsey value (maybe null or undefined?). This seems like an indirect and potentially confusing way to reset the model. It would be better if there were a specific and clear reset method.

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.