Coder Social home page Coder Social logo

himamis / j2objc-sample-reversi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomball/j2objc-sample-reversi

0.0 2.0 0.0 94 KB

A sample showing how to use a Reversi game engine in an iOS app using J2ObjC.

License: Apache License 2.0

Objective-C 28.36% Java 71.64%

j2objc-sample-reversi's Introduction

j2objc-sample-reversi

This is a sample showing how to use a Reversi game engine in an iOS app using J2ObjC.

The original game, Othello, is written by Mats Luthman and available from his site. Mats designed it to work as both a Swing and command-line app, so the game engine and the user interface are isolated by two interfaces.

Because of this separation, the game engine is an ideal candidate for an iOS application using J2ObjC. This Xcode project has a (very) simple user interface written in Objective-C, game engine files in Java, and a build rule to translate the Java files and compile them during the build.

To build this project, first install J2ObjC, then edit the Settings.xcconfig file to update the J2OBJC_HOME environment variable with the directory where it was installed.

Things Left Undone

Since this project is just an example of how to use J2ObjC, the game's user interface is missing several important features:

  • Game Over screen
  • Indication that either player had to pass due to no possible move
  • Options panel to set the game difficulty (it's set to 5 out of 10, so it can provide a much stronger game)
  • iPad design needs polish

Since I'm not a UI designer, any help would be welcome and appreciated.

J2ObjC Project

Project site: http://j2objc.org
J2ObjC blog: http://j2objc.blogspot.com
Questions and discussion: http://groups.google.com/group/j2objc-discuss

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.