samp.directory
← Skripte und Bibliotheken

Southclaws/samp-guess-word-game

A function request I received. Good example of sampctl.

Bibliothek★ 1aktualisiert Feb. 2018Keine LizenzPAWNsampctlArchiviert
Auf GitHub öffnen

Der Autor hat dieses Repository archiviert, es wird also nicht mehr gepflegt.

Dieses Repository hat keine Lizenzdatei. Es ist öffentlich lesbar, aber das allein gibt noch keine Erlaubnis, es weiterzuverwenden.

Mit sampctl installieren

sampctl package install Southclaws/samp-guess-word-game

Führe das in deinem Projektordner aus. sampctl lädt das Paket und alles herunter, wovon es abhängt.

Im Pawn-Compiler ausprobieren →

Fügt seine Include-Dateien samt der Bibliotheken, von denen es abhängt, dem Pawn-Compiler in deinem Browser hinzu, bereit zum Einbinden in ein Skript.

Hängt von 3 Paketen ab

README.md

strcmpex

strcmpex compares two strings, a 'truth' and a 'test' where the truth represents the desired match and the test is a user-entered value. The goal of this function is to facilitate a code comparison puzzle where the user enters a number and is given feedback for each character in the test sequence, such as:

  • correct value in the correct position
  • incorrect value, not in the truth string at all
  • partially incorrect value, is in the truth string but wrong pos the

inputs are character arrays (strings) and the output is an array of values from 0 to 2, where:

  • 0 represents correctness
  • 1 represents incorrectness
  • 2 represents a valid character in the wrong position

To run tests:

sampctl package run

Diese Seite wird aus dem erstellt, was GitHub über das Repository veröffentlicht. samp.directory hostet den Code nicht. Ein Problem mit diesem Eintrag melden