Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* @actions/actions-runtime
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

val choices = listOf("ROCK", "PAPER", "SCISSORS")
val computerSelection = choices.random()

btn.setOnClickListener {
val userChoice = input.text.toString().uppercase()

if (userChoice !in choices) {
    status.text = "Please enter Rock, Paper, or Scissors"
} else if (userChoice == computerSelection) {
    status.text = "Draw! Computer also chose $computerSelection"
} else if ((userChoice == "ROCK" && computerSelection == "SCISSORS") ||
           (userChoice == "PAPER" && computerSelection == "ROCK") ||
           (userChoice == "SCISSORS" && computerSelection == "PAPER")) {
    status.text = "You Win! Computer chose $computerSelection"
} else {
    status.text = "You Lose! Computer chose $computerSelection"
}

}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

best code 2 5$ dollo money

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6 code 10$ dollo money pleas

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

val roll = (1..6).random()
status.text = "Sabaqni kufe: $roll 🎲"

https://docs.github.com/?search-overlay-open=true&search-overlay-ask-ai=true&search-overlay-input=Game%20code* @actions/actions-runtime
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

val secret = (1..100).random()
// Logic: guess == secret (Win), guess < secret (Higher), guess > secret (Lower)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

val options = listOf("Rock", "Paper", "Scissors")
val ai = options.random()
// Logic: If user == ai (Draw), else check who wins.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

val fortunes = listOf("Guyyaa gaarii!", "Maallaqa argatta", "Of eeggannoo godhi", "Hiriyaan haaraa ni dhufa")
status.text = fortunes.random()


Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

val num1 = (1..10).random()
val num2 = (1..10).random()
val answer = num1 + num2
status.text = "$num1 + $num2 = ?"

/packages/artifact/ @actions/artifacts-actions
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

val lottoNumbers = List(6) { (1..49).random() }
status.text = "Lottoo guyyaa har'aa: ${lottoNumbers.joinToString(", ")}"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// Chapa API fayyadamuun kaffaltii eegalchiisuu (Example)
val paymentRequest = JSONObject().apply {
put("amount", "100") // Birrii 100
put("currency", "ETB")
put("email", "user@example.com")
put("tx_ref", "unique_transaction_id_123")
}

// Koodii kanaan gara 'Payment Gateway' tti qajeelchita
fun startPayment(request: JSONObject) {
// API Call to Chapa or Telebirr
println("Kaffaltiin eegalameera: ${request.get("amount")} ETB")
}

/packages/cache/ @actions/actions-cache
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import com.google.android.gms.ads.rewarded.RewardedAd
import com.google.android.gms.ads.rewarded.RewardedAdLoadCallback

class MainActivity : AppCompatActivity() {
private var rewardedAd: RewardedAd? = null

override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    setContentView(R.layout.activity_main)

    // Beeksisa Video Load gochuu
    val adRequest = AdRequest.Builder().build()
    RewardedAd.load(this, "YOUR_AD_UNIT_ID", adRequest, object : RewardedAdLoadCallback() {
        override fun onAdLoaded(ad: RewardedAd) {
            rewardedAd = ad
        }
    })

    // Button yoo tuqamu video agarsiisuu
    btnShowVideo.setOnClickListener {
        rewardedAd?.show(this) { rewardItem ->
            val rewardAmount = rewardItem.amount
            // Qabxii (Points) nama sanaaf dabali
            userPoints += rewardAmount
            statusText.text = "Points kee: $userPoints"
        }
    }
}

}

Expand Down