Wrox Programmer Forums
|
BOOK: Beginning iOS Game Development
This is the forum to discuss the Wrox book Beginning iOS Game Development by Patrick Alessi ; ISBN: 978-1-1181-0732-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning iOS Game Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 15th, 2012, 06:19 PM
Registered User
 
Join Date: Mar 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch4 MagicMind

Hey When i run the code it works until i enter the second guess:
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov 3 21:59:02 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys001
[Switching to process 12588 thread 0x0]
2012-03-15 17:15:19.535 MagicMind[12588:707] You are on guess number 1
2012-03-15 17:15:19.537 MagicMind[12588:707] Enter your guess:
rrrrr
2012-03-15 17:15:26.600 MagicMind[12588:707]
Correct Color And Position: 0
Correct Color Only: 0
2012-03-15 17:15:26.601 MagicMind[12588:707] You are on guess number 2
2012-03-15 17:15:26.601 MagicMind[12588:707] Enter your guess:
ooyyk
sharedlibrary apply-load-rules all
(gdb)


I also downloaded the code from online and got the same thing. Any ideas?
 
Old March 16th, 2012, 12:40 AM
Authorized User
 
Join Date: Mar 2012
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did you try rebooting the system or XCode? One thing I learned is sometimes the iOS simulator screws up.

Last friday i was working on the Scrambler app. The button in the app only works once and I lose every time afterwards. It made no sense. I couldn't figure out why. Then bam when I recompiled 10 minutes later, it worked.
 
Old March 16th, 2012, 12:54 AM
Registered User
 
Join Date: Mar 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just tried both suggestions but no luck. Thanks anyway :)
 
Old March 17th, 2012, 01:38 PM
Authorized User
 
Join Date: Mar 2012
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I looked at your error log. Why did you enter five colors? It should be four colors! If the array is 4, but you pointed to the 5th item of the array, I think it'll crash b/c the 5th item doesn't exist.





Similar Threads
Thread Thread Starter Forum Replies Last Post
about magicMind, target integrity error baryonicdm BOOK: Beginning iOS Game Development 9 January 9th, 2012 09:48 AM
Need help with Ch4 Exercise 3! xiao_mao_mimi BOOK: Ivor Horton's Beginning Java, Java 7 Edition 1 December 22nd, 2011 02:37 PM
Ch4 Problem daivos03 JSP Basics 9 January 30th, 2006 01:57 AM
ch4 wrong output? pete12345 JSP Basics 3 January 24th, 2004 09:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.