Calculator Tools Calculator Tools
Create

GPT Shiritori

Aug 12, 2026

About this app

Play Shiritori with GPT

GPT Shiritori GPT Shiritori Welcome to GPT Shiritori! Start by entering a word: Submit

Related apps

Put this on your site

Source

                    <html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">

<title>GPT Shiritori</title>
<meta name="description" content="Play Shiritori with GPT">
<meta name="keywords" content="shiritori, game, GPT">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap" rel="stylesheet">

<style>
body {
background-color: #f8f9fa;
font-family: 'Roboto', sans-serif;
}

.container {
max-width: 600px;
margin: 0 auto;
padding: 40px 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.title {
text-align: center;
font-size: 24px;
font-weight: 700;
margin-bottom: 20px;
}

.log-container {
border: 1px solid #ddd;
border-radius: 4px;
padding: 10px;
margin-bottom: 20px;
max-height: 200px;
overflow-y: auto;
background-color: #f8f9fa;
}

.log-container p {
margin: 0;
}

.log-container p:nth-child(even) {
background-color: #f1f3f5;
padding: 8px;
border-radius: 4px;
}

.log-container p:nth-child(odd) {
background-color: #fff;
padding: 8px;
border-radius: 4px;
}

.input-container {
display: flex;
}

.input-container input {
flex: 1;
border: 1px solid #ddd;
border-radius: 4px;
padding: 8px;
font-size: 16px;
}

.input-container button {
border: none;
background-color: #007bff;
color: #fff;
padding: 8px 16px;
margin-left: 10px;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}

@media (max-width: 576px) {
.container {
padding: 20px;
}
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1 class="title">GPT Shiritori</h1>
<div class="log-container" id="log-container">
<p>Welcome to GPT Shiritori!</p>
<p>Start by entering a word:</p>
</div>
<div class="input-container">
<input type="text" id="word-input" placeholder="Enter a word">
<button type="button" id="submit-btn">Submit</button>
</div>
</div>

<script type="text/javascript">
var logContainer = document.getElementById("log-container");
var wordInput = document.getElementById("word-input");
var submitBtn = document.getElementById("submit-btn");

submitBtn.addEventListener("click", function() {
var word = wordInput.value.trim();
if (word !== "") {
logContainer.innerHTML += "<p>You: " + word + "</p>";
getGptResponse(word);
wordInput.value = "";
}
});

function getGptResponse(word) {
// Call your GPT API here to get the response
// Replace the code below with your actual API call

var gptResponse = "GPT: " + getNextWord(word);
logContainer.innerHTML += "<p>" + gptResponse + "</p>";
}

function getNextWord(word) {
// Replace this function with your algorithm to get the next word
// This is just a placeholder

var nextWord = word + "a";
return nextWord;
}
</script>
</body>
</html>