← 수업 제작 도구
홈 › Components › Card Sort (카드 정렬) › 화면 2

화면 2. Card Sort.totalCorrectCards [source]

원본: Computation Layer 문서(Card Sort (카드 정렬)) · Try It (원본 화면)

화면 번호2 / 3
문서 항목 설명 (원문)totalCorrectCards Number of cards correctly sorted according to the answer key Notes: (1) Cards that are supposed to be on their own are marked correct when on their own. (2) Cards correctly sorted into an incomplete group count as correct. (3) Cards in a group where any card is wrong are all counted as wrong.

1. 화면 캡처 (빨간 번호 = 아래 표의 번호)

화면 2 캡처

화면에 적힌 영어 문구(원문):

2. CL이 입력된 곳

코드 안의 회색 줄은 원문 영어 주석이고, 파란 줄은 그 영어 주석의 번역이며, 연분홍 줄은 코드가 하는 일의 설명이다.

번호이름종류CL 코드 원문, 번역, 설명
1master CL
(화면 전체)
SCREEN
# This code imports the total number of correct cards in
# a card sort called “sort” and assigns it to a
# variable called “correct”.
▷ "sort"라는 카드 정렬에서 정답인 카드의 수를 가져와 "correct"라는 변수에 정한다.

correct = sort.totalCorrectCards
▶ 변수 correct는 정답 키에 따라 올바르게 분류된 카드의 수(sort.totalCorrectCards)로 한다.
혼자 있어야 하는 카드는 혼자 있을 때 맞은 것으로 치고, 덜 채워진 묶음에 올바르게 들어간 카드도 맞은 것으로 세며, 묶음 안에 틀린 카드가 하나라도 있으면 그 묶음의 카드는 모두 틀린 것으로 센다. correct =는 등호로 쓰였으므로 정답 조건(correct)이 아니라 변수이다.
# This code injects that variable into the subtitle. ▷ 그 변수를 부제목에 끼워 넣는다. subtitle: "Total Correct Cards: ${correct}" ▶ 화면 제목 아래에 표시할 부제목(subtitle)은 "Total Correct Cards: ${correct}"(정답 카드 수: correct의 값)로 한다.
${ }는 글자 안에 변수의 값을 끼워 넣는 표기이다.