• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 19:12
CEST 01:12
KST 08:12
  • 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
Classic Games #3: Rogue vs Serral at BlizzCon9[ASL20] Ro16 Preview Pt1: Ascent10Maestros of the Game: Week 1/Play-in Preview12[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway13
Community News
SC4ALL $6,000 Open LAN in Philadelphia7Weekly Cups (Sept 1-7): MaxPax rebounds & Clem saga continues24LiuLi Cup - September 2025 Tournaments3Weekly Cups (August 25-31): Clem's Last Straw?39Weekly Cups (Aug 18-24): herO dethrones MaxPax6
StarCraft 2
General
#1: Maru - Greatest Players of All Time Weekly Cups (Sept 1-7): MaxPax rebounds & Clem saga continues Team Liquid Map Contest #21 - Presented by Monster Energy Classic Games #3: Rogue vs Serral at BlizzCon What happened to Singapore/Brazil servers?
Tourneys
RSL: Revival, a new crowdfunded tournament series Sparkling Tuna Cup - Weekly Open Tournament SC4ALL $6,000 Open LAN in Philadelphia LANified! 37: Groundswell, BYOC LAN, Nov 28-30 2025 LiuLi Cup - September 2025 Tournaments
Strategy
Custom Maps
External Content
Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense Mutation # 488 What Goes Around Mutation # 487 Think Fast
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ BSL Team Wars - Bonyth, Dewalt, Hawk & Sziky teams ASL20 General Discussion BW General Discussion alas... i aint gon' lie to u bruh...
Tourneys
SC4ALL $1,500 Open Bracket LAN CPL12 SIGN UP are open!!! [ASL20] Ro16 Group B [Megathread] Daily Proleagues
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Path of Exile Nintendo Switch Thread Stormgate/Frost Giant Megathread General RTS Discussion Thread Borderlands 3
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread The Games Industry And ATVI UK Politics Mega-thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
BarCraft in Tokyo Japan for ASL Season5 Final The Automated Ban List
Blogs
The Personality of a Spender…
TrAiDoS
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1164 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 10h 48m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nathanias 162
StarCraft: Brood War
Britney 14151
Shuttle 644
sSak 42
Dota 2
monkeys_forever581
PGG 129
Counter-Strike
Stewie2K476
Other Games
summit1g5485
Grubby2411
FrodaN2316
Fnx 839
shahzam606
Sick160
C9.Mang0155
JimRising 115
XaKoH 103
Mew2King39
ViBE23
fpsfer 3
Organizations
Other Games
gamesdonequick1950
StarCraft 2
angryscii 91
Other Games
BasetradeTV35
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• davetesta38
• StrangeGG 33
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota21557
League of Legends
• Doublelift4765
• TFBlade596
Other Games
• Scarra1313
Upcoming Events
RSL Revival
10h 48m
Maestros of the Game
14h 48m
ShoWTimE vs Classic
Clem vs herO
Serral vs Bunny
Reynor vs Zoun
Cosmonarchy
16h 48m
Bonyth vs Dewalt
[BSL 2025] Weekly
18h 48m
RSL Revival
1d 10h
Maestros of the Game
1d 17h
BSL Team Wars
1d 19h
Afreeca Starleague
2 days
Snow vs Sharp
Jaedong vs Mini
Wardi Open
2 days
Sparkling Tuna Cup
3 days
[ Show More ]
Afreeca Starleague
3 days
Light vs Speed
Larva vs Soma
LiuLi Cup
4 days
The PondCast
5 days
Liquipedia Results

Completed

Copa Latinoamericana 4
SEL Season 2 Championship
HCC Europe

Ongoing

BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
LASL Season 20
RSL Revival: Season 2
Maestros of the Game
Chzzk MurlocKing SC1 vs SC2 Cup #2
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1

Upcoming

2025 Chongqing Offline CUP
BSL Polish World Championship 2025
BSL Season 21
SC4ALL: Brood War
BSL 21 Team A
SC4ALL: StarCraft II
EC S1
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
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 © 2025 TLnet. All Rights Reserved.