Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block SoptikHa2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import sys
from random import randint
def next_letter(probs, letter):
if not letter in probs:
return None
probs_for_letter = probs[letter]
sum_of_probs = 0
for prob in probs_for_letter:
sum_of_probs += probs_for_letter[prob]

Keybase proof

I hereby claim:

  • I am soptikha2 on github.
  • I am soptikha2 ( on keybase.
  • I have a public key ASDpSr1gNR-vLwiyvC6a_PZhQEgmbNqBtyxssiJVZ59Itgo

To claim this, I am signing this object:

SoptikHa2 /
Created Jul 14, 2019
Code wars - behaviour tree
// Petr Šťastný <>
// 2019-07-14
// trait = interface
pub trait CodingBlock {
fn execute(&self) -> Option<&Action>;
// Define enums. Each enum variant can
// have another type inside it.
You can’t perform that action at this time.