# Full Solution for Chapter 18 (Swift Apprentice, V3), Challenge 3 - Character Battle

**URL:** <https://forums.kodeco.com/t/full-solution-for-chapter-18-swift-apprentice-v3-challenge-3-character-battle/43432>\
**Category:** Swift Apprentice\
**Created:** [June 9, 2018, 7:11pm UTC](https://forums.kodeco.com/t/full-solution-for-chapter-18-swift-apprentice-v3-challenge-3-character-battle/43432 "2018-06-09T19:11:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![neptunenancy](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/neptunenancy/32/110937_2.png) [@neptunenancy](https://forums.kodeco.com/u/neptunenancy)\
**Post date:** [June 9, 2018, 7:11pm UTC](https://forums.kodeco.com/t/full-solution-for-chapter-18-swift-apprentice-v3-challenge-3-character-battle/43432/1 "2018-06-09T19:11:13Z")

</div>

I’m trying to code the solution for Challenge 3, Character Battle, but I’m stuck!

Unfortunately the playground that came with the book doesn’t include the solution, just the test cases that are already shown in the book’s text.

Thanks!

---

<div class="post-metadata">

**Author:** ![neptunenancy](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/neptunenancy/32/110937_2.png) [@neptunenancy](https://forums.kodeco.com/u/neptunenancy)\
**Post date:** [June 9, 2018, 8:22pm UTC](https://forums.kodeco.com/t/full-solution-for-chapter-18-swift-apprentice-v3-challenge-3-character-battle/43432/2 "2018-06-09T20:22:44Z")

</div>

Nevermind! I expanded the file pane on the left in Xcode for the downloaded challenges playground, and found the code I was looking for.

It sure helps to step away from the keyboard for awhile, as that’s when the solution finds you! 🙂

---

<div class="post-metadata">

**Author:** ![h1i2j3](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/h1i2j3/32/100893_2.png) [@h1i2j3](https://forums.kodeco.com/u/h1i2j3)\
**Post date:** [June 9, 2018, 8:51pm UTC](https://forums.kodeco.com/t/full-solution-for-chapter-18-swift-apprentice-v3-challenge-3-character-battle/43432/3 "2018-06-09T20:51:01Z")

</div>

Edit: Just saw you figured it out, Nice!!

> [@neptunenancy](#):
>
> Unfortunately the playground that came with the book doesn’t include the solution, just the test cases that are already shown in the book’s text.

Right, the test cases are in the playground page file.

The magic is found in it’s 📁 Sources folder which contains **Characters.swift**

 ![image](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/5/a/5a2fbc5e3c1e67c2c81a81242888f2e981d32a1c.png)

Hot key: ⌘0 will Open/Close the Navigator  
The Project Navigator (Hot key ⌘1) contains all the files for the project.

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [November 23, 2018, 11:24am UTC](https://forums.kodeco.com/t/full-solution-for-chapter-18-swift-apprentice-v3-challenge-3-character-battle/43432/4 "2018-11-23T11:24:10Z")

</div>

Closed on November 23, 2018, 11:24am UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
