NFC-enabled Tic Tac Toe Game on BlackBerry 9790 and BlackBerry 10 Dev Alpha!

Mobile Link

RIM has made it easy for developers to get on board and to develop for BlackBerry and BlackBerry 10, with the push for tomorrow technology and the use of NFC. RIM is pushing the envelope for a new way and wave of ways of NFC to be implemented into gaming for the current and new platform.  This short video shows a BlackBerry 9790 running a Java implementation of an NFC enabled Tic Tac Toe game against a BlackBerry 10 Dev Alpha device running the same game implemented using Cascades and C++. It serves as an example of “Proximity Gaming” where NFC is leveraged to provide players with a physically interactive gaming experience. It also illustrates the excellent interoperability between devices that is available using NFC.

The RIM Developer Relations team, using Near Field Communications (NFC) has made it easy using the codings to get more done. If you need help and or more information you can find John Murray (@jcmrim), to help you out and the NFC Article and Code Index

If you want to know how to use SNEP in general you can check out some great articles on SNEP for both BlackBerry 7 and BlackBerry 10 with sample codes as well here:

BlackBerry 7 – Peer to Peer Communication with SNEP

BlackBerry 10 – Peer to Peer Communication with SNEP

There’s a key point here: you could implement your Proximity Gaming ideas for either BlackBerry 7 or BlackBerry 10 because both have the specific types of NFC peer-to-peer capabilities that you will need. Harnessing NFC SNEP in the way we wanted for our game was easy. The APIs themselves are very straightforward to use. For BlackBerry 7 we designed some Java classes, which represent the various message types in the game protocol. This was standard stuff if you’re accustomed to working with protocols, and we ended up with an abstract class called ProtocolMessage and a series of concrete sub-classes, one for each message type. Each of these classes implemented a marshall and demarshall method so that we could easily swap between byte array representations, which would be exchanged over NFC SNEP and Java objects for internal use in the application.

Finally if you want to check out the NFC-enabled tic tac toe game full source code, available in the github repositories here:


So BlackBerry Devs, take a dive into making your games and applications better using the NFC capabilities of BlackBerry 10 and current BlackBerry devices!