[nfbcs] Help with card game in swift
David Andrews
dandrews at visi.com
Thu Apr 6 21:19:10 UTC 2017
Actually the BN Touch will run many Android apps.
Dave
At 01:41 PM 4/6/2017, you wrote:
>I don't believe BN works on Android or IOS. This
>app only works on those platforms. When it is
>done, it will allow you to roll up to 6 dice.
>You will have the ability to select dice to
>reroll. Score cards are under consideration.
>-----Original Message----- From: nfbcs
>[mailto:nfbcs-bounces at nfbnet.org] On Behalf Of
>Jessica Dail via nfbcs Sent: Thursday, April 6,
>2017 2:37 PM To: Andy B. via nfbcs
><nfbcs at nfbnet.org> Cc: Jessica Dail
><jldail13 at gmail.com> Subject: Re: [nfbcs] Help
>with card game in swift Hi, I have a BN touch.
>Will it work the there? What will it do? On Apr
>6, 2017 2:32 PM, "Andy B. via nfbcs"
><nfbcs at nfbnet.org> wrote: > > It isn't done, and
>wont be for a while because I am working on the
>Android version first. I have little bits of it
>done, and won't be out until the fall. If the
>Android one gets done sooner, I will work on it
>before then. The app is called "Dice Roller" and
>will cost $1.99 in each app store. It is
>accessible without extra settings in place. > >
>-----Original Message----- > From: nfbcs
>[mailto:nfbcs-bounces at nfbnet.org] On Behalf Of
>Jessica Dail via nfbcs > Sent: Thursday, April
>6, 2017 1:21 PM > To: Andy B. via nfbcs
><nfbcs at nfbnet.org> > Cc: Jessica Dail
><jldail13 at gmail.com> > Subject: Re: [nfbcs] Help
>with card game in swift > > Hi, > What's the
>name of your "dice app?" > > Is it accessible? >
>Does it cost? > > Thanks, > Jessica > On Apr 6,
>2017 12:46 PM, "Andy B. via nfbcs"
><nfbcs at nfbnet.org> wrote: > > > > Consider not
>using a self-voicing app. Use Voiceover's
>ability to handle accessibility features out of
>the box. For example, my dice app uses die faces
>as jpg images inside of a UIImage control. All I
>need to do is set the alt text to the number
>displayed on the die face in the image. Use the
>same for your cards. > > > > -----Original
>Message----- > > From: nfbcs
>[mailto:nfbcs-bounces at nfbnet.org] On Behalf Of
>Taylor Arndt via nfbcs > > Sent: Thursday, April
>6, 2017 12:42 PM > > To: NFB in Computer Science
>Mailing List <nfbcs at nfbnet.org> > > Cc: Taylor
>Arndt <taylorarndt99 at gmail.com> > > Subject:
>[nfbcs] Help with card game in swift > > > > Hi,
>i am making an accessible cardgame for the blind
>in swift. I am doing quite well, but having
>issues implamenting text to speech. I get some
>errors about the viewcontroler not having a
>member of synthh and also an error about can't
>convert card names to string i would really love
>help, because making this accessible has been
>the hardest part. > > here is myy code. > > > >
>// > > // ViewController.swift > >
>// Accessible War Game > > // > > // Created
>by Taylor Arndt on 3/31/17. > > // Copyright ©
>2017 ?Tays apps. All rights reserved. > >
>// > > > > import UIKit > > > > import
>AVFoundation > > class ViewController:
>UIViewController { > > > > override func
>viewDidLoad()
>{ > > super.viewDidLoad() > > //
>Do any additional setup after loading the view,
>typically from a nib. > > } > > @IBOutlet
>weak var computer:UILabel! > > @IBOutlet weak
>var leftimageview:UIImageView! > > @IBOutlet
>weak var rightimageview:UIImageView! > >
>@IBOutlet weak var player:UILabel! > > @IBOutlet
>weak var deal:UIButton! > > @IBAction func
>DealTapped(_sender: UIButton) {
>leftimageview.image = UIImage(named:"card10")
>let synth = AVSpeechSynthesizer() var
>myUtterance = AVSpeechUtterance(string: "") var
>cardNamesArray:[String] = ["card2", "card3",
>"card4", "card5", "card6", "card7", "card8",
>"card9", "card10", "jack", "queen", "king",
>"ace"] > > myUtterance =
>AVSpeechUtterance(string: cardNames) > >
>self.synth.speak(myUtterance) > > } > > > > } > > > > } > > > > -- >
More information about the NFBCS
mailing list