mitsuyoshi-yamazaki / SwarmChemistry

Hiroki Sayama's artificial chemistry model -> http://bingweb.binghamton.edu/~sayama/SwarmChemistry/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SwarmChemistry

Swift library of Hiroki Sayama's artificial chemistry model SwarmChemistry. This project includes followings:

  • SwarmChemistry library
  • Demo app implementation for iOS
  • Demo app implementation for macOS
  • Screensaver for Mac

Requirement

iOS10+
macOS10.12+

Usage

Install to Your App

Use Carthage:

github "mitsuyoshi-yamazaki/SwarmChemistry"

To use the library, see: implementation

Run Demo Apps

1. Clone this repository

$ git clone git@github.com:mitsuyoshi-yamazaki/SwarmChemistry.git

2. Open the project

Open SwarmChemistry.xcworkspace on Xcode8.3

3. Run the app

Choose a scheme Demo_iOS or Demo_Mac and run.

About iOS app

  • You can choose initial swarm condition:
    • Predefined recipes
    • Random
    • Manual input
  • You can share the current recipe and the screenshot

About Mac app

  • You can not choose recipe on the app for now, so edit recipe by changing Population parameter in the source code

Install Screensaver

Download screensavers from Releases, unzip them and double-click to install.

Content

This project includes following targets:

Target name Description
SwarmChemistry_iOS SwarmChemistry CocoaTouch Framework
SwarmChemistry_Mac SwarmChemistry Cocoa Framework
SwarmChemistryTest_iOS Tests for SwarmChemistry
SwarmChemistryTest_Mac Tests for SwarmChemistry
Demo_iOS App implementation for iOS
Demo_Mac App implementation for Mac
Demo_Screensaver Screensaver for Mac
AtHome ArtificialLife@home (Screensaver for Mac)

Releases

See Releases

Troubleshooting

Breakpoint does not work on the mac demo app

Because Build Configuration is set to Release to make it runs faster. Change it to Debug to enable debugging.

About

Hiroki Sayama's artificial chemistry model -> http://bingweb.binghamton.edu/~sayama/SwarmChemistry/

License:MIT License


Languages

Language:Swift 99.2%Language:Objective-C 0.7%Language:C 0.1%