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](http://www.luthman.nu/Othello/Othello.html). 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](http://j2objc.org). This Xcode project has
a (very) simple user interface written in Objective-C, game engine
files in Java, and
[a build rule](https://github.com/google/j2objc/wiki/Xcode-Build-Rules)
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><br>
**J2ObjC blog:** <http://j2objc.blogspot.com><br>
**Questions and discussion:** <http://groups.google.com/group/j2objc-discuss>
没有合适的资源?快使用搜索试试~ 我知道了~
演示如何在 使用J2ObjC 的 iOS 应用程序中使用 黑白棋游戏引擎的示例_java_Objective-C_代码_下载
共36个文件
java:8个
png:7个
m:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 13 浏览量
2022-06-23
12:05:51
上传
评论
收藏 75KB ZIP 举报
温馨提示
这是一个示例,展示了如何在使用 J2ObjC 的 iOS 应用程序中使用黑白棋游戏引擎。 最初的游戏奥赛罗由 Mats Luthman 编写,可从 他的网站获得。Mats 将其设计为既可以用作 Swing 应用程序,也可以用作命令行应用程序,因此游戏引擎和用户界面由两个界面隔离开来。 由于这种分离,游戏引擎是使用J2ObjC的 iOS 应用程序的理想候选者。这个 Xcode 项目有一个(非常)简单的用 Objective-C 编写的用户界面,Java 中的游戏引擎文件,以及 一个 用于翻译 Java 文件并在构建期间编译它们的构建规则。 要构建此项目,首先安装 J2ObjC,然后编辑 Settings.xcconfig 文件以使用安装目录更新 J2OBJC_HOME 环境变量。 更多详情、使用方法,请下载后阅读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
j2objc-sample-reversi-master.zip (36个子文件)
j2objc-sample-reversi-master
J2Reversi.xcodeproj
project.pbxproj 27KB
J2Reversi-Prefix.pch 317B
LICENSE 11KB
graphics
white-score.png 5KB
white-stone.png 4KB
Default-568h@2x.png 18KB
black-score.png 5KB
tile.png 15KB
black-stone.png 4KB
empty-square.png 143B
.gitignore 56B
README.md 2KB
J2Reversi-Info.plist 2KB
Classes
main.m 815B
J2RViewController.m 2KB
Othello
Engine
SuperEngine.java 3KB
Game.java 5KB
README 198B
CommandInterfaceListener.java 360B
Move.java 727B
Score.java 1KB
CommandInterface.java 5KB
Position.java 3KB
Engine.java 18KB
J2RViewController.h 1KB
J2RBoard.m 3KB
J2RBoard.h 1KB
J2RAppDelegate.h 830B
J2RSquare.h 931B
J2RAppDelegate.m 1KB
J2RSquare.m 4KB
en.lproj
LaunchScreen.storyboard 5KB
J2RViewController_iPad.xib 4KB
InfoPlist.strings 45B
J2RViewController_iPhone.xib 4KB
Config
Settings.xcconfig 594B
共 36 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9156
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Docker容器配置进阶
- tensorflow-gpu-2.7.4-cp37-cp37m-manylinux2010-x86-64.whl
- 多段线、 圆、弧转多段线(仅我可见)
- tensorflow-2.7.2-cp38-cp38-manylinux2010-x86-64.whl
- yeyue-p8Yi4-ve4a83792.apk
- tensorflow-gpu-2.7.3-cp38-cp38-manylinux2010-x86-64.whl
- 五相感应电机矢量控制模型MATLAB
- RGLED (1) (1).circ
- IMG_20240427_215747.jpg
- python下前端WEB学习笔记
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功