没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
CS193P IOS APPLICATION DEVELOPMENT SPRING 2021
Assignment III: Set
Objective
The goal of this assignment is to give you an opportunity to create your first app
completely from scratch by yourself. It is similar enough to the first two assignments
that you should be able to find your bearings, but different enough to give you the full
experience!
Since the goal here is to create an application from scratch, do not start with your
assignment 2 code, start with New → Project in Xcode.
Be sure to review the Hints section below!
Also, check out the latest in the Evaluation section to make sure you understand what
you are going to be evaluated on with this assignment.
Due
This assignment is due in 10 days because it is larger in scope than assignments 1 and 2.
It is effectively a “first midterm” in this course, so start working on it early. Check out
the very last Hint.
Materials
• You can use any of the code from lecture (e.g. AspectVGrid which you can find here).
• You will want to review the rules to the game of Set.
PAGE OF ASSIGNMENT III: SET1 8
CS193P IOS APPLICATION DEVELOPMENT SPRING 2021
Required Tasks
1. Implement a game of solo (i.e. one player) Set.
2. As the game play progresses, try to keep all the cards visible and as large as possible.
In other words, cards should get smaller (or larger) as more (or fewer) appear on-
screen at the same time. It’s okay if you want to enforce a minimum size for your
cards and then revert to scrolling when there are a very large number of cards.
Whatever way you deal with “lots of cards” on screen, it must always still be possible
to play the game (i.e. cards must always be recognizable, even when all 81 are in play
at the same time).
3. Cards can have any aspect ratio you like, but they must all have the same aspect ratio at
all times (no matter their size and no matter how many are on screen at the same
time). In other words, cards can be appearing to the user to get larger and smaller as
the game goes on, but the cards cannot be “stretching” into different aspect ratios as
the game is played.
4. The symbols on cards should be proportional to the size of the card (i.e. large cards
should have large symbols and smaller cards should have smaller symbols).
5. Users must be able to select up to 3 cards by touching on them in an attempt to make
a Set (i.e. 3 cards which match, per the rules of Set). It must be clearly visible to the
user which cards have been selected so far.
6. After 3 cards have been selected, you must indicate whether those 3 cards are a match
or mismatch. You can show this any way you want (colors, borders, backgrounds,
whatever). Anytime there are 3 cards currently selected, it must be clear to the user
whether they are a match or not (and the cards involved in a non-matching trio must
look different than the cards look when there are only 1 or 2 cards in the selection).
7. Support “deselection” by touching already-selected cards (but only if there are 1 or 2
cards (not 3) currently selected).
8. When any card is touched on and there are already 3 matching Set cards selected,
then …
a. as per the rules of Set, replace those 3 matching Set cards with new ones from the
deck
b. if the deck is empty then the space vacated by the matched cards (which cannot be
replaced since there are no more cards) should be made available to the remaining
cards (i.e. which may well then get bigger)
c. if the touched card was not part of the matching Set, then select that card
d. if the touched card was part of a matching Set, then select no card
PAGE OF ASSIGNMENT III: SET2 8
剩余7页未读,继续阅读
资源评论
zhj12399
- 粉丝: 1w+
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功