• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 16:52
CET 21:52
KST 05:52
  • 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
[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting10[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9
Community News
2025 RSL Offline Finals Dates + Ticket Sales!9BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION1Crank Gathers Season 2: SC II Pro Teams9Merivale 8 Open - LAN - Stellar Fest3Chinese SC2 server to reopen; live all-star event in Hangzhou23
StarCraft 2
General
RotterdaM "Serral is the GOAT, and it's not close" The New Patch Killed Mech! Could we add "Avoid Matchup" Feature for rankgame Chinese SC2 server to reopen; live all-star event in Hangzhou Weekly Cups (Oct 13-19): Clem Goes for Four
Tourneys
Crank Gathers Season 2: SC II Pro Teams 2025 RSL Offline Finals Dates + Ticket Sales! Merivale 8 Open - LAN - Stellar Fest $5,000+ WardiTV 2025 Championship $3,500 WardiTV Korean Royale S4
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment
Brood War
General
[ASL20] Ask the mapmakers — Drop your questions BSL Team A vs Koreans - Sat-Sun 16:00 CET [ASL20] Finals Preview: Arrival BW General Discussion BSL Season 21
Tourneys
[ASL20] Grand Finals The Casual Games of the Week Thread BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION ASL final tickets help
Strategy
How to stay on top of macro? PvZ map balance Soma's 9 hatch build from ASL Game 2 Current Meta
Other Games
General Games
General RTS Discussion Thread Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
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
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread YouTube Thread The Chess Thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Movie Discussion! Anime Discussion Thread [Manga] One Piece Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
LMAO (controversial!!)
Peanutsc
The Benefits Of Limited Comm…
TrAiDoS
Our Last Hope in th…
KrillinFromwales
Certified Crazy
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1346 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 4h 8m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SpeCial 81
Railgan 58
StarCraft: Brood War
Britney 14865
Bonyth 100
sas.Sziky 50
NaDa 5
Dota 2
monkeys_forever279
capcasts150
Counter-Strike
Foxcn34
Super Smash Bros
C9.Mang0292
Heroes of the Storm
Liquid`Hasu373
Other Games
Grubby2586
fl0m988
FrodaN919
ceh9420
Skadoodle210
Hui .129
ArmadaUGS86
Trikslyr38
ViBE12
Models4
Moletrap2
Organizations
StarCraft 2
angryscii 35
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Hupsaiya 42
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota21296
League of Legends
• Doublelift1225
Other Games
• imaqtpie1152
• Scarra539
• Shiphtur163
Upcoming Events
BSL 21
4h 8m
Replay Cast
13h 8m
BASILISK vs Shopify Rebellion
Team Liquid vs Team Falcon
OSC
15h 8m
CrankTV Team League
16h 8m
Shopify Rebellion vs Team Liquid
BASILISK vs Team Falcon
Replay Cast
1d 2h
The PondCast
1d 12h
CrankTV Team League
1d 16h
Replay Cast
2 days
WardiTV Invitational
2 days
MaNa vs Gerald
Rogue vs GuMiho
ByuN vs Spirit
herO vs Solar
CrankTV Team League
2 days
[ Show More ]
Replay Cast
3 days
BSL Team A[vengers]
3 days
Dewalt vs Shine
UltrA vs ZeLoT
BSL 21
3 days
Sparkling Tuna Cup
4 days
BSL Team A[vengers]
4 days
Cross vs Motive
Sziky vs HiyA
BSL 21
4 days
Wardi Open
5 days
Monday Night Weeklies
5 days
Liquipedia Results

Completed

ASL Season 20
WardiTV TLMC #15
Eternal Conflict S1

Ongoing

BSL 21 Points
BSL 21 Team A
C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
CranK Gathers Season 2: SC II Pro Teams
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025

Upcoming

SC4ALL: Brood War
YSL S2
BSL Season 21
SLON Tour Season 2
BSL 21 Non-Korean Championship
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
META Madness #9
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 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.