• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 23:42
CEST 05:42
KST 12:42
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Code S Season 1 - RO8 Preview3[ASL21] Ro8 Preview Pt2: Progenitors8Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun13[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10
Community News
Weekly Cups (April 27-May 4): Clem takes triple0RSL Revival: Season 5 - Qualifiers and Main Event12Code S Season 1 (2026) - RO12 Results12026 GSL Season 1 Qualifiers25Maestros of the Game 2 announced9
StarCraft 2
General
Code S Season 1 - RO8 Preview Behind the Blue - Team Liquid History Book Weekly Cups (April 27-May 4): Clem takes triple Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Code S Season 1 (2026) - RO12 Results
Tourneys
RSL Revival: Season 5 - Qualifiers and Main Event GSL Code S Season 1 (2026) Sparkling Tuna Cup - Weekly Open Tournament StarCraft Evolution League (SC Evo Biweekly) 2026 GSL Season 2 Qualifiers
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
Mutation # 524 Death and Taxes The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ (Spoiler) Asl ro8 D winner interview BW General Discussion Do we have a pimpest plays list? AI Question
Tourneys
[ASL21] Ro8 Day 4 [BSL22] RO16 Group Stage - 02 - 10 May [ASL21] Ro8 Day 3 [Megathread] Daily Proleagues
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Nintendo Switch Thread Dawn of War IV Stormgate/Frost Giant Megathread OutLive 25 (RTS Game) Daigo vs Menard Best of 10
Dota 2
The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread European Politico-economics QA Mega-thread 3D technology/software discussion Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread Formula 1 Discussion McBoner: A hockey love story
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Movie Stars In Video Games: …
TrAiDoS
ramps on octagon
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1852 users

Programming: A Puzzle Game

Blogs > GSang
Post a Reply
GSang
Profile Blog Joined August 2010
United States51 Posts
Last Edited: 2013-05-22 15:26:45
May 20 2013 23:36 GMT
#1
Hey everybody,

Well summer's starting and I figure it's time to actually start doing something productive. I have a ton of programming/business ideas I'd like to get started on so lets have it.

This project I'm working on was a small idea I had during class but I see some potential for it as a smartphone app. It's a unique and simple to play puzzle game that is at least a little challenging. Currently it's only written for java (I'm actually learning objective c at the moment.. I might stream some of the learning process as well).

I'm excited to get any form feedback on my coding so feel free to hate. Also, feel free to ask any questions about my project or about coding in general (I've been programming since 6th grade but I'm definitely not at the level I should be at with that amount of experience so don't expect too much). I'll try to give live commentary if I'm not focused on coding (and if I actually have viewers haha). I have terrible ADD so hopefully this stream keeps me staying focused.

Follow me!
http://www.twitch.tv/gsang


The bare bones puzzle is simple.

[image loading]

You swap tile positions until all of the tiles become adjacent to their pair. When a tile becomes adjacent to its pair, it turns into a heart and can no longer be moved. Thus, the picture demonstrates a loss because the 2 in the bottom right cannot be moved next to its pair in the bottom left as its trapped by hearts.

I hope to add a host of game modes like survival mode which would require you to continuously solve puzzles in a set or decreasing amount of time and "campaign" mode which would require you to solve a certain puzzle in a certain number of moves.

****
doner0
Profile Blog Joined July 2010
United States233 Posts
May 21 2013 03:56 GMT
#2
best of luck, objective-c is kind of tough mainly because of how you translate into apple's system. they have a lot of classes that they have created that are supposed make your life easier, but until you learn how to use them they can be quite tough; even once you know it is still very easy to forget. Best of luck with creating the application!
GSang
Profile Blog Joined August 2010
United States51 Posts
May 21 2013 13:26 GMT
#3
Alright thanks! I'm actually currently working on finishing up a different project but I'll definitely be streaming a lot of me learning objective c


currently streaming
ClysmiC
Profile Blog Joined December 2010
United States2192 Posts
May 21 2013 19:38 GMT
#4
I'd love to see some info or screenshots about how the game is played.
GSang
Profile Blog Joined August 2010
United States51 Posts
May 22 2013 03:14 GMT
#5
Ill put some up eventually

streaming again
GSang
Profile Blog Joined August 2010
United States51 Posts
Last Edited: 2013-05-22 15:30:25
May 22 2013 14:34 GMT
#6
On the past couple days I've been working on lose events. Basically you lose (in this simplified version of the game) if it is not longer possible to complete the puzzle because at least one pair of tiles cannot be touching.

[image loading]

This case creates a loss because at least one of the regions has an odd number of tiles in it. This optimizes the code in a way by preventing it from running through a lengthy process which performs an insertion sort and then searches through an array.


[image loading]

This creates a loss by performing the relatively lengthy algorithm described before.



Big thanks to Marc L for providing me with a better algorithm for determining the regions and for being generally helpful otherwise.



Now I'm going to be working on setting up a menu screen
GSang
Profile Blog Joined August 2010
United States51 Posts
May 27 2013 23:08 GMT
#7
streaming!
3FFA
Profile Blog Joined February 2010
United States3931 Posts
Last Edited: 2013-05-27 23:39:14
May 27 2013 23:37 GMT
#8
Make sure to check out TheBigProgramming Thread(will be referred to as TBPT) for any questions you have! :D

Also, I'm currently learning Objective C and next year I am going to delve into Java. If you have any questions or difficulties, just ask in TBPT. If I'm not too busy working on my own projects, I'll be able to help, as will more experienced programmers. I hope you have learned C before, if not, learn that before Objective C.

Also, this has some tutorials on a little bit of everything. I recommend using these to refresh yourself on things you've already learned, or together with other tutorials / resources to actually learn the material, instead of just typing or copy + pasting it in.
http://www.raywenderlich.com/tutorials
Some things there can also be useful for learning to make apps.

http://www.cprogramming.com/
This is great for learning the basics of C :D
"As long as it comes from a pure place and from a honest place, you know, you can write whatever you want."
Please log in or register to reply.
Live Events Refresh
Next event in 5h 48m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 185
SpeCial 119
Nina 7
StarCraft: Brood War
GuemChi 5690
PiGStarcraft387
Noble 4
Dota 2
monkeys_forever670
NeuroSwarm103
Counter-Strike
tarik_tv4654
Super Smash Bros
Mew2King179
Other Games
summit1g7972
C9.Mang0598
WinterStarcraft268
Sick132
ViBE132
Maynarde126
Organizations
Other Games
gamesdonequick947
BasetradeTV473
Dota 2
PGL Dota 2 - Main Stream30
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 13 non-featured ]
StarCraft 2
• practicex 29
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo716
• Stunt296
Upcoming Events
GSL
5h 48m
SHIN vs Zoun
ByuN vs herO
OSC
7h 18m
OSC
9h 18m
Replay Cast
20h 18m
Escore
1d 6h
The PondCast
1d 6h
WardiTV Invitational
1d 7h
Zoun vs Ryung
Lambo vs ShoWTimE
Big Brain Bouts
1d 12h
Fjant vs Bly
Serral vs Shameless
OSC
1d 18h
Replay Cast
1d 20h
[ Show More ]
CranKy Ducklings
2 days
RSL Revival
2 days
SHIN vs Bunny
ByuN vs Shameless
WardiTV Invitational
2 days
Krystianer vs TriGGeR
Cure vs Rogue
uThermal 2v2 Circuit
2 days
BSL
2 days
Artosis vs TerrOr
spx vs StRyKeR
Replay Cast
2 days
Sparkling Tuna Cup
3 days
RSL Revival
3 days
Cure vs Zoun
Clem vs Lambo
WardiTV Invitational
3 days
BSL
3 days
Dewalt vs DragOn
Aether vs Jimin
GSL
4 days
Afreeca Starleague
4 days
Soma vs Leta
Monday Night Weeklies
4 days
CranKy Ducklings
5 days
Afreeca Starleague
5 days
Light vs Flash
Replay Cast
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-05-05
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
Acropolis #4
SCTL 2026 Spring
RSL Revival: Season 5
2026 GSL S1
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026

Upcoming

Escore Tournament S2: W6
KK 2v2 League Season 1
BSL 22 Non-Korean Championship
YSL S3
Escore Tournament S2: W7
Escore Tournament S2: W8
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.