Hiroki Sayama's artificial chemistry model -> http://bingweb.binghamton.edu/~sayama/SwarmChemistry/
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Demo
Demo_Mac
Demo_ScreenSaver
Demo_iOS
Playground.playground
SwarmChemistry.xcodeproj
SwarmChemistry.xcworkspace
SwarmChemistry
SwarmChemistryTests
.gitignore
LICENSE
README.md

README.md

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