Commit Graph

166 Commits

Author SHA1 Message Date
Marty Oehme 5a72783d57 Add .toCoordinates() method to grid
Calculates the 2-D array coordinates from the corresponding list index passed in. Relies on grid width to calculate coordinates. Does not check against grid size constraints.
2018-08-30 09:53:05 +02:00
Marty Oehme 6c3fcbe7b0 Add .get method for coordinate element retrieval to grid
Coordinates passed in access the correct index in the internal list.
2018-08-30 09:43:46 +02:00
Marty Oehme 46b11bc33b Add dart_test.yaml file to suppress tag warnings
tags are added in the file without any special options
2018-08-30 09:42:29 +02:00
Marty Oehme 3f939601b3 Add toIndex method
can be used to get the correct index from coordinates passed in. Will only calculate the index, not take into consideration any grid size constraints etc.
2018-08-30 09:41:43 +02:00
Marty Oehme 8865af4878 Add tags to Instantiation tests 2018-08-30 09:36:57 +02:00
Marty Oehme b0e67d9f85 Add getter and setter methods for wrapper
!!Need testing
2018-08-29 22:13:13 +02:00
Marty Oehme 27ef72014e Add simple Grid - List Wrapper Data Structure 2018-08-29 22:12:19 +02:00
Marty Oehme 0c487f3427 Rename Grid to Simulation
in order to craft an actual grid data structure
2018-08-29 20:13:24 +02:00
Marty 7db2e73f53 Merge branch '37-make-grid-size-configurable' into 'master'
Resolve "Make Grid Size configurable"

Closes #38, #39, and #37

See merge request marty.oehme/cellular-automata!10
2018-08-28 07:45:43 +00:00
Marty Oehme b1221c7c84 Add Grid Size Input to Configuration Bar
Fixes #37
2018-08-27 23:04:02 +02:00
Marty Oehme 800c85d14f Fix wrong variable being accessed by controls_component 2018-08-27 23:03:13 +02:00
Marty Oehme 3a1ba1c1e9 Fix Wrong ControlService being provided to Angular 2018-08-27 23:02:48 +02:00
Marty Oehme b6919cff6b Move Canvas setting to configuration service
Fix #39
2018-08-27 20:56:33 +02:00
Marty Oehme a92b864dfa Extract EngineService into separate service 2018-08-27 20:50:12 +02:00
Marty Oehme 04d61bfa02 Error out on bad gridsize input 2018-08-27 20:18:19 +02:00
Marty Oehme 873bd9c881 Allow Optional Injection of grid size into engine on creation 2018-08-27 20:13:19 +02:00
Marty Oehme 9886f13d69 Add grid changing function 2018-08-27 19:55:30 +02:00
Marty Oehme 5e8f83cf8a Refactor EngineService to be able to inject custom Engine
fixes #38
2018-08-27 19:37:35 +02:00
Marty Oehme dd18fc3bc7 Make Engine Gridsize configurable 2018-08-25 17:23:06 +02:00
Marty 8a6538aa5e Merge branch '35-wire-up-speed-slider' into 'master'
Resolve "Wire up Speed Slider"

Closes #35

See merge request marty.oehme/cellular-automata!9
2018-08-25 14:45:22 +00:00
Marty Oehme 7a3fdf3681 Fix Engine Test case 2018-08-25 16:43:47 +02:00
Marty Oehme 952179eee3 Implement Test Case 2018-08-25 16:43:38 +02:00
Marty Oehme 774e9e3782 Add Simple Documentation 2018-08-25 16:41:11 +02:00
Marty Oehme c3f0881454 Wire up Speed slider to Engine Configuration 2018-08-25 15:51:32 +02:00
Marty Oehme 905af769f6 Add Configurable stepsPerSecond for engine logic 2018-08-25 15:51:17 +02:00
Marty Oehme 588a3ad2a0 Add explicit getter and setter for Simulation Speed
In preparation for adding additional logic as a quasi-callback to execute whenever the simSpeed changes (i.e. the slider is changed)
2018-08-25 15:26:44 +02:00
Marty 7d5b1cfe30 Merge branch '31-allow-engine-to-be-created-without-the-need-for-a-canvas' into 'master'
Resolve "Allow Engine to be created without the need for a canvas"

Closes #31

See merge request marty.oehme/cellular-automata!8
2018-08-25 13:02:45 +00:00
Marty Oehme 3c27f5ef38 Re-Add Canvas to Simulation component 2018-08-25 15:01:00 +02:00
Marty Oehme 71023de49a Make canvas virtual variable on EngineService 2018-08-25 15:00:46 +02:00
Marty Oehme cc33628e5f Enable cached engine returns for EngineService 2018-08-25 14:51:28 +02:00
Marty Oehme 66bf87d9d8 Allow setting a canvas for an engine at any point 2018-08-25 14:36:50 +02:00
Marty Oehme 4c6dff35c3 Add Canvas nullcheck to render function 2018-08-25 14:10:56 +02:00
Marty Oehme 572406b963 Fix undefined running access 2018-08-25 14:10:19 +02:00
Marty Oehme 2d5cc889f0 Merge remote-tracking branch 'origin/31-allow-engine-to-be-created-without-the-need-for-a-canvas' into 31-allow-engine-to-be-created-without-the-need-for-a-canvas 2018-08-25 09:36:49 +02:00
Marty Oehme 976ec8097d Separate Engine Service Functionality from Component 2018-08-25 09:36:27 +02:00
Marty Oehme 842cbeca1f make canvas argument optional on instantiating engine 2018-08-25 09:36:27 +02:00
Marty Oehme 1bd324a406 Disable superfluous tests
In preparation for first test of the app.
2018-08-25 09:36:27 +02:00
Marty Oehme a8cafbac49 Migrate to official dart-sdk version 2.0.0 2018-08-25 09:35:59 +02:00
Marty Oehme 76d73266f5 Merge remote-tracking branch 'origin/31-allow-engine-to-be-created-without-the-need-for-a-canvas' into 31-allow-engine-to-be-created-without-the-need-for-a-canvas 2018-08-25 09:33:33 +02:00
Marty Oehme bbf61f875d Separate Engine Service Functionality from Component 2018-08-25 09:33:15 +02:00
Marty Oehme 6c9179b833 make canvas argument optional on instantiating engine 2018-08-24 20:02:43 +02:00
Marty Oehme 8d7575eaf7 Disable superfluous tests
In preparation for first test of the app.
2018-08-24 20:01:36 +02:00
Marty c84b052beb Merge branch '25-add-configuration-sidebar' into 'master'
Resolve "Add Configuration Sidebar"

Closes #25

See merge request marty.oehme/cellular-automata!7
2018-08-24 17:59:17 +00:00
Marty Oehme bf0d136d8b Add Configuration Sidebar with ConfigurationService 2018-08-23 14:12:22 +02:00
Marty Oehme 6ba0ca55cb dartfmt 2018-08-23 12:38:34 +02:00
Marty 223f831196 Merge branch '21-switch-from-fontawesome-to-material-glyphs' into 'master'
Resolve "Switch from FontAwesome to Material Glyphs"

Closes #21

See merge request marty.oehme/cellular-automata!6
2018-08-23 10:08:38 +00:00
Marty Oehme abd2c3ac23 Add Speed Slider Tooltip 2018-08-23 12:07:54 +02:00
Marty Oehme c3368524f9 Change Step Forward Icon 2018-08-23 12:07:43 +02:00
Marty Oehme 4906bbe54c Switch Control Interface Icons to MaterialIcons 2018-08-23 11:34:08 +02:00
Marty 594506081a Merge branch '19-add-material-styling-to-app' into 'master'
Resolve "Add Material Styling to App"

Closes #19

See merge request marty.oehme/cellular-automata!5
2018-08-23 07:43:18 +00:00