Close Menu
New York Examiner News

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Oz Clement Knight Explains Why Opportunity Alone Doesn’t Create Wealth

    May 26, 2026

    Sonny Rollins, Jazz Luminary and Saxophone Legend, Dies at 95

    May 26, 2026

    The next great American tech hub isn’t a city. It’s a corridor between New York and Miami

    May 26, 2026
    Facebook X (Twitter) Instagram
    New York Examiner News
    • Home
    • US News
    • Politics
    • Business
    • Science
    • Technology
    • Lifestyle
    • Music
    • Television
    • Film
    • Books
    • Contact
      • About
      • Amazon Disclaimer
      • DMCA / Copyrights Disclaimer
      • Terms and Conditions
      • Privacy Policy
    New York Examiner News
    Home»Science»How mathematicians use Minecraft to calculate pi
    Science

    How mathematicians use Minecraft to calculate pi

    By AdminMay 26, 2026
    Facebook Twitter Pinterest LinkedIn WhatsApp Email Reddit Telegram
    How mathematicians use Minecraft to calculate pi


    The blockbuster game Minecraft depicts a world created by cubes: everything is made of discrete building blocks. It may therefore seem particularly unsuitable for calculating pi (π), the mathematical constant that equals the ratio of a circle’s circumference to its diameter. To determine the infinitely many, never-repeating decimal places of this irrational number, one must use the shape of a perfect circle that has no corners or edges.

    Yet mathematicians Molly Lynch of Hollins University and Michael Weselcouch of Roanoke College have found a way to determine the mathematical constant’s value of 3.14159… as accurately as possible within the Minecraft world.

    If you—like me—are only vaguely familiar with Minecraft, here’s a brief explanation: in this “sandbox” game, you can move relatively freely through the blocky world and build various structures, such as buildings or circuits, from cube-shaped elements. To do this, you have to gather resources and process those raw resources into new materials and items.


    On supporting science journalism

    If you’re enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.


    The many freedoms offered by Minecraft’s gameplay allow players to be creative. Past players have demonstrated that Minecraft is Turing complete, meaning that any computer program can be implemented within the game. Users have even managed to program a playable version of Minecraft within the game itself!

    Knowing this, it’s no longer too surprising that the mathematical constant pi can also be calculated in Minecraft. If any computer program can be implemented in the game, then so can one that outputs the value of pi. Translating an algorithm into the game world is usually extremely complex, however. It requires translating all the instructions a computer follows on an electrical level—clear the register and insert a new value, process values from registers x and y using a logical AND operation, and so on—into a Minecraft action. A simple algorithm can quickly escalate into thousands of different in-game instructions.

    Lynch and Weselcouch wanted to avoid that. Their goal was to make mathematics appealing to young people, and they thought Minecraft was a perfect vehicle with which to do so. In a 2024 paper they presented several methods for calculating well-known mathematical constants such as pi in the popular video game—all done without too much effort.

    Throwing Darts at a Board

    The two researchers first needed a method for calculating pi that could be easily implemented in Minecraft. They opted for the well-studied darts technique.

    Imagine you play darts about as well as I do—which is to say, very badly. In this thought experiment, you’re throwing darts at a circular board mounted to a square area of wall. You’ll definitely hit somewhere within the square area of wall but not necessarily the circular dartboard. Because you’re not particularly skilled at throwing darts, it’s pure chance whether the dart lands on the circular board or on the wall outside of it; in other words, it’s equally likely to hit anywhere within the total area of the square. If you throw enough darts, you can approximate the value of pi.

    Why is this the case? Let’s assume the square has a side length of two meters and covers an area of four square meters. That would make the diameter of the circle two meters as well, giving the circle a radius of one meter and thus an area of π square meters. Therefore, if the darts are randomly distributed within the square, there is a probability of π⁄4 that they will land within the circle. By counting the darts within the circle and dividing by the total number of darts thrown, the result should be close to π⁄4. Multiply that result by four, and you have an approximation of pi.

    Lynch and Weselcouch implemented precisely this clever technique for approximating pi in Minecraft in 2024. They first approximated a circular structure within the game using red blocks with a “radius” of 11 blocks. They then surrounded the red blocks with blue blocks, resulting in a red approximate circle enclosed within a blue square.

    Next they generated random events in the game that functioned similarly to the darts hitting the target in the darts example. To do this, the pair used a Minecraft creature known as a slime. Unlike other creatures in the game, “slimes continue moving when no players are nearby and they change direction at random,” Lynch and Weselcouch explain in their paper. They paired the slimes with a second type of creature, called zoglins, which kill slimes.

    With these two creatures, Lynch and Weselcouch were able to generate random events that could be tracked in-game without direct observation. By covering the red circle with funnel-shaped blocks called hoppers, which automatically collect objects that fall directly on top of them, the researchers created a way to get a signal for each slime’s death: every time a slime was killed, it dropped items that were collected by a hopper. By dividing the number of slimes killed within the circle (or the number of items collected by hoppers within the circle) by the total number of creatures killed (or the number of items collected by all hoppers on the square), one can obtain an approximation of π⁄4.

    The two researchers tested their method in the game. During their test run, a total of 619 slimes were killed, 508 of which were killed inside the circle. These data allowed them to obtain the following approximate value for pi:

    π ≈ 4 × (508 / 619) = 3.283

    By the authors own admission, this isn’t a particularly good approximation of pi. They provide two ways to improve their method: enlarging the area of the square, and thus the area of the circle, and increasing the number of slimes killed within that total area. Enlarging the circle improves accuracy by better approximating a true circle. And the darts technique—which is formally called the Monte Carlo method—becomes more accurate when more random events are generated. In the Minecraft case, that means sending even more slimes and zoglins into battle.

    This method of calculating pi will never be truly efficient, as Lynch and Weselcouch themselves admit. But efficiency is not their goal: it’s to inspire people, particularly young people, with mathematics. A Minecraft battle between slimes and zoglins is probably far better suited to that than a highly optimized algorithm.

    This article originally appeared in Spektrum der Wissenschaft and was reproduced with permission. It was translated from the original German version with the assistance of artificial intelligence and reviewed by our editors.



    Original Source Link

    Share. Facebook Twitter Pinterest LinkedIn WhatsApp Email Reddit Telegram
    Previous ArticleGTA 6 Surprise Release Date Mix-Up Is Causing A Serious Meltdown
    Next Article Amazon fulfillment competitor Stord raises $250M at $3B valuation

    RELATED POSTS

    Does gravity create reality? A shocking path to a theory of everything

    May 26, 2026

    A Probe Took Incredible Pictures of Mars on Its Way to a Far-Off Asteroid

    May 25, 2026

    Ocean census reveals more than 1,100 new species

    May 24, 2026

    Experimental mRNA vaccine may protect against multiple Ebola viruses

    May 24, 2026

    Quantum ‘Jamming’ Could Help Unlock the Mysteries of Causality

    May 23, 2026

    SpaceX launches Starship V3—the world’s most powerful and tallest rocket ever

    May 23, 2026
    latest posts

    Oz Clement Knight Explains Why Opportunity Alone Doesn’t Create Wealth

    Many people believe financial success comes from finding better opportunities. Oz Clement Knight disagrees. As…

    Sonny Rollins, Jazz Luminary and Saxophone Legend, Dies at 95

    May 26, 2026

    The next great American tech hub isn’t a city. It’s a corridor between New York and Miami

    May 26, 2026

    Bryson DeChambeau insists he is ‘optimistic’ about the future of LIV Golf despite Saudis pulling funding

    May 26, 2026

    Amazon fulfillment competitor Stord raises $250M at $3B valuation

    May 26, 2026

    How mathematicians use Minecraft to calculate pi

    May 26, 2026

    GTA 6 Surprise Release Date Mix-Up Is Causing A Serious Meltdown

    May 26, 2026
    Categories
    • Books (1,266)
    • Business (6,170)
    • Events (55)
    • Film (6,107)
    • Lifestyle (4,204)
    • Music (6,225)
    • Politics (6,166)
    • Science (5,524)
    • Technology (6,103)
    • Television (5,790)
    • Uncategorized (7)
    • US News (6,158)
    popular posts

    Google will allow users control how ads are personalized on Search, YouTube and elsewhere with new tool – TechCrunch

    At Google’s I/O developer conference, the company introduced a new tool that, later this year,…

    The highest paid CEOs in America in 2021

    May 28, 2022

    Has streaming killed Star Wars?

    May 12, 2026

    The US Built a Site to Ensure Fair Access to Public Lands. Then Everything Went Wrong

    May 19, 2026
    Archives
    Browse By Category
    • Books (1,266)
    • Business (6,170)
    • Events (55)
    • Film (6,107)
    • Lifestyle (4,204)
    • Music (6,225)
    • Politics (6,166)
    • Science (5,524)
    • Technology (6,103)
    • Television (5,790)
    • Uncategorized (7)
    • US News (6,158)
    About Us

    We are a creativity led international team with a digital soul. Our work is a custom built by the storytellers and strategists with a flair for exploiting the latest advancements in media and technology.

    Most of all, we stand behind our ideas and believe in creativity as the most powerful force in business.

    What makes us Different

    We care. We collaborate. We do great work. And we do it with a smile, because we’re pretty damn excited to do what we do. If you would like details on what else we can do visit out Contact page.

    Our Picks

    How mathematicians use Minecraft to calculate pi

    May 26, 2026

    GTA 6 Surprise Release Date Mix-Up Is Causing A Serious Meltdown

    May 26, 2026

    ‘Castle Impossible’ Returns, Elizabeth Banks Is ‘Running Wild,’ Soccer Docs

    May 26, 2026
    © 2026 New York Examiner News. All rights reserved. All articles, images, product names, logos, and brands are property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement unless specified. By using this site, you agree to the Terms & Conditions and Privacy Policy.

    Type above and press Enter to search. Press Esc to cancel.

    We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
    Cookie SettingsAccept All
    Manage consent

    Privacy Overview

    This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
    Necessary
    Always Enabled
    Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
    CookieDurationDescription
    cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
    cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
    cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
    cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
    cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
    viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
    Functional
    Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
    Performance
    Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
    Analytics
    Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
    Advertisement
    Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
    Others
    Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
    SAVE & ACCEPT